diff --git a/src/richtext/richtextfontpage.cpp b/src/richtext/richtextfontpage.cpp index 89c9f1e023..32427ab2ba 100644 --- a/src/richtext/richtextfontpage.cpp +++ b/src/richtext/richtextfontpage.cpp @@ -475,6 +475,9 @@ bool wxRichTextFontPage::TransferDataFromWindow() attr->SetTextEffects(attr->GetTextEffects() & ~(wxTEXT_ATTR_EFFECT_SUBSCRIPT|wxTEXT_ATTR_EFFECT_SUPERSCRIPT) ); } + if (attr->GetTextEffectFlags() == 0) + attr->SetFlags(attr->GetFlags() & ~wxTEXT_ATTR_EFFECTS); + return true; } @@ -1044,7 +1047,7 @@ void wxRichTextFontPage::OnIdle( wxIdleEvent& WXUNUSED(event) ) { if (!m_sizeUnitsCtrl) return; - + if (m_sizeUnitsCtrl->GetSelection() == 1 && m_sizeListBox->IsShown()) { m_fontListBoxParent->Show(m_sizeListBox, false);