]> git.saurik.com Git - wxWidgets.git/blobdiff - src/richtext/richtextbuffer.cpp
Limit indentation in style listbox, and also show centring
[wxWidgets.git] / src / richtext / richtextbuffer.cpp
index fceaaf7dc16f48373e6ec165500586a5ec7416e5..0b1841d64cbc91a3241fcaab2317f8f29850a223 100644 (file)
@@ -1647,7 +1647,9 @@ bool wxRichTextParagraphLayoutBox::SetStyle(const wxRichTextRange& range, const
                 else
                     newPara = para;
 
-                if (paragraphStyle && !charactersOnly)
+                // If we're specifying paragraphs only, then we really mean character formatting
+                // to be included in the paragraph style
+                if ((paragraphStyle || parasOnly) && !charactersOnly)
                 {
                     if (applyMinimal)
                     {