]> git.saurik.com Git - wxWidgets.git/commitdiff
Always set colormap for PangoContext. This silences myriads
authorRobert Roebling <robert@roebling.de>
Mon, 2 Oct 2006 19:50:46 +0000 (19:50 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 2 Oct 2006 19:50:46 +0000 (19:50 +0000)
     of warning in the wxRichTextCtrl.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dcclient.cpp

index 56073aa547dbdfe76c8e775f849304bb4df2ae5c..285fb6aade78b56190f569cbd79b144cf2d3cb97 100644 (file)
@@ -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 );