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