]> git.saurik.com Git - wxWidgets.git/commitdiff
Make sure paragraph style is reset before applying a new style
authorJulian Smart <julian@anthemion.co.uk>
Wed, 13 Feb 2008 19:26:41 +0000 (19:26 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 13 Feb 2008 19:26:41 +0000 (19:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextctrl.cpp

index 24860a64ad87ec4ecdfe036e01d055cfa81b3a22..bf9a7d4f12ddd0936d27980d0e9003ca9f572a57 100644 (file)
@@ -2927,7 +2927,7 @@ bool wxRichTextCtrl::ApplyStyle(wxRichTextStyleDefinition* def)
     // attributes are applied.
     wxTextAttr attr(GetStyleSheet() ? def->GetStyleMergedWithBase(GetStyleSheet()) : def->GetStyle());
 
-    int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO|wxRICHTEXT_SETSTYLE_OPTIMIZE;
+    int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO|wxRICHTEXT_SETSTYLE_OPTIMIZE|wxRICHTEXT_SETSTYLE_RESET;
 
     if (def->IsKindOf(CLASSINFO(wxRichTextListStyleDefinition)))
     {