Style removal fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-01-24 22:23:08 +00:00
parent 9bcce52d3f
commit 7885636055

View File

@@ -1682,7 +1682,7 @@ bool wxRichTextParagraphLayoutBox::SetStyle(const wxRichTextRange& range, const
// Removes the given style from the paragraph
wxRichTextRemoveStyle(newPara->GetAttributes(), style);
}
if (resetExistingStyle)
else if (resetExistingStyle)
newPara->GetAttributes() = wholeStyle;
else
{
@@ -1762,7 +1762,7 @@ bool wxRichTextParagraphLayoutBox::SetStyle(const wxRichTextRange& range, const
// Removes the given style from the paragraph
wxRichTextRemoveStyle(child->GetAttributes(), style);
}
if (resetExistingStyle)
else if (resetExistingStyle)
child->GetAttributes() = characterAttributes;
else
{