fixing changing text colors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1349,7 +1349,9 @@ void wxDC::SetTextForeground( const wxColour &col )
|
|||||||
if ( col != m_textForegroundColour )
|
if ( col != m_textForegroundColour )
|
||||||
{
|
{
|
||||||
m_textForegroundColour = col;
|
m_textForegroundColour = col;
|
||||||
m_graphicContext->SetTextColor( col ) ;
|
m_graphicContext->SetTextColor( col );
|
||||||
|
// in the current implementation the font contains the text color
|
||||||
|
m_graphicContext->SetFont(m_font);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user