From: Paul Cornett Date: Thu, 7 Dec 2006 07:20:16 +0000 (+0000) Subject: use correct test X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6fbe4b247a97b1ea6a91c26bff2dd7c1165d47dc?ds=inline use correct test git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index 1fdc8aab53..c79e4175d6 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -1771,7 +1771,7 @@ void wxWindowDC::DoGetTextExtent(const wxString &string, } // Reset old font description - if (theFont) + if (theFont->IsOk()) pango_layout_set_font_description( m_layout, m_fontdesc ); }