From 24bbbfb112cd755a944a76555b540af67d7f8ab1 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 2 Oct 2006 19:50:46 +0000 Subject: [PATCH] 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 --- src/gtk/dcclient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index 56073aa547..285fb6aade 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -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 ); -- 2.45.2