use correct test

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2006-12-07 07:20:16 +00:00
parent f7b7521722
commit 6fbe4b247a

View File

@@ -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 );
}