Fixed a problem with text effects flag always being set on dialog exit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -475,6 +475,9 @@ bool wxRichTextFontPage::TransferDataFromWindow()
|
|||||||
attr->SetTextEffects(attr->GetTextEffects() & ~(wxTEXT_ATTR_EFFECT_SUBSCRIPT|wxTEXT_ATTR_EFFECT_SUPERSCRIPT) );
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1044,7 +1047,7 @@ void wxRichTextFontPage::OnIdle( wxIdleEvent& WXUNUSED(event) )
|
|||||||
{
|
{
|
||||||
if (!m_sizeUnitsCtrl)
|
if (!m_sizeUnitsCtrl)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_sizeUnitsCtrl->GetSelection() == 1 && m_sizeListBox->IsShown())
|
if (m_sizeUnitsCtrl->GetSelection() == 1 && m_sizeListBox->IsShown())
|
||||||
{
|
{
|
||||||
m_fontListBoxParent->Show(m_sizeListBox, false);
|
m_fontListBoxParent->Show(m_sizeListBox, false);
|
||||||
|
Reference in New Issue
Block a user