]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed a bug preventing style resetting to occur
authorJulian Smart <julian@anthemion.co.uk>
Sun, 18 May 2008 17:03:53 +0000 (17:03 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 18 May 2008 17:03:53 +0000 (17:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextbuffer.cpp

index 38b0f76f74b1a32af0e94e5163f8f43a484eb15b..b25bd7ae0ab9201ad79c515c955c5d3c44e350b4 100644 (file)
@@ -1796,8 +1796,7 @@ bool wxRichTextParagraphLayoutBox::SetStyle(const wxRichTextRange& range, const
                 // we only want the paragraphs to hold this character style, then we _don't_ want to
                 // apply the character style. So we need to be able to choose.
 
-                // if (!paragraphStyle && characterStyle && range.GetStart() != newPara->GetRange().GetEnd())
-                if (!parasOnly && characterStyle && range.GetStart() != newPara->GetRange().GetEnd())
+                if (!parasOnly && (characterStyle|charactersOnly) && range.GetStart() != newPara->GetRange().GetEnd())
                 {
                     wxRichTextRange childRange(range);
                     childRange.LimitTo(newPara->GetRange());