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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user