Don't create a font when converting to wxTextAttrEx unless one exists

in the wxRichTextAttr


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@65157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2010-08-02 13:26:07 +00:00
parent 5b025a8d33
commit a2ac9be2ac

View File

@@ -8704,7 +8704,8 @@ wxRichTextAttr::operator wxTextAttrEx () const
attr.SetTabs(GetTabs());
attr.SetLeftIndent(GetLeftIndent(), GetLeftSubIndent());
attr.SetRightIndent(GetRightIndent());
attr.SetFont(CreateFont());
if (HasFont())
attr.SetFont(CreateFont());
attr.SetParagraphSpacingAfter(m_paragraphSpacingAfter);
attr.SetParagraphSpacingBefore(m_paragraphSpacingBefore);