diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index b386ff627f..390576b21f 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -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);