Always set colormap for PangoContext. This silences myriads
of warning in the wxRichTextCtrl. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1452,6 +1452,8 @@ void wxWindowDC::DoDrawText( const wxString &text, wxCoord x, wxCoord y )
|
||||
wxCHECK_RET( m_layout, wxT("no Pango layout") );
|
||||
wxCHECK_RET( m_fontdesc, wxT("no Pango font description") );
|
||||
|
||||
gdk_pango_context_set_colormap( m_context, m_cmap );
|
||||
|
||||
bool underlined = m_font.Ok() && m_font.GetUnderlined();
|
||||
|
||||
const wxCharBuffer data = wxGTK_CONV( text );
|
||||
|
Reference in New Issue
Block a user