git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52365
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
const wxTextAttr& attrDef,
const wxTextCtrlBase *text)
{
const wxTextAttr& attrDef,
const wxTextCtrlBase *text)
{
- wxFont font = attr.GetFont();
+ wxFont font;
+ if (attr.HasFont())
+ font = attr.GetFont();
+
- font = attrDef.GetFont();
+ if (attrDef.HasFont())
+ font = attrDef.GetFont();
if ( text && !font.Ok() )
font = text->GetFont();
if ( text && !font.Ok() )
font = text->GetFont();