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
|
// Removes the given style from the paragraph
|
||||||
wxRichTextRemoveStyle(newPara->GetAttributes(), style);
|
wxRichTextRemoveStyle(newPara->GetAttributes(), style);
|
||||||
}
|
}
|
||||||
if (resetExistingStyle)
|
else if (resetExistingStyle)
|
||||||
newPara->GetAttributes() = wholeStyle;
|
newPara->GetAttributes() = wholeStyle;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1762,7 +1762,7 @@ bool wxRichTextParagraphLayoutBox::SetStyle(const wxRichTextRange& range, const
|
|||||||
// Removes the given style from the paragraph
|
// Removes the given style from the paragraph
|
||||||
wxRichTextRemoveStyle(child->GetAttributes(), style);
|
wxRichTextRemoveStyle(child->GetAttributes(), style);
|
||||||
}
|
}
|
||||||
if (resetExistingStyle)
|
else if (resetExistingStyle)
|
||||||
child->GetAttributes() = characterAttributes;
|
child->GetAttributes() = characterAttributes;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user