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:
@@ -1771,7 +1771,7 @@ void wxWindowDC::DoGetTextExtent(const wxString &string,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Reset old font description
|
// Reset old font description
|
||||||
if (theFont)
|
if (theFont->IsOk())
|
||||||
pango_layout_set_font_description( m_layout, m_fontdesc );
|
pango_layout_set_font_description( m_layout, m_fontdesc );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user