]> git.saurik.com Git - wxWidgets.git/commitdiff
patch as at http://thread.gmane.org/gmane.comp.lib.wxwidgets.devel/92350 thanks
authorChris Elliott <biol75@york.ac.uk>
Wed, 10 Oct 2007 07:20:44 +0000 (07:20 +0000)
committerChris Elliott <biol75@york.ac.uk>
Wed, 10 Oct 2007 07:20:44 +0000 (07:20 +0000)
chris

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextliststylepage.cpp

index 75bcfa7c2efe3e25c5dcd63791bcdece7c1dd512..c072342a33e5a9d120a3cd921185ad6b4d92dec4 100644 (file)
@@ -529,9 +529,9 @@ iaculis malesuada. Donec bibendum ipsum ut ante porta fringilla.\n");
         wxRichTextListStyleDefinition);
 
     wxRichTextStyleSheet* styleSheet = wxRichTextFormattingDialog::GetDialog(this)->GetStyleSheet();
-
-    wxTextAttr attr(styleSheet ? def->GetStyle() : def->GetStyleMergedWithBase(styleSheet));
-
+    
+    wxTextAttr attr((const wxTextAttr &)(styleSheet ? def->GetStyle() : def->GetStyleMergedWithBase(styleSheet)));
+    
     attr.SetFlags(attr.GetFlags() &
       (wxTEXT_ATTR_ALIGNMENT|wxTEXT_ATTR_LEFT_INDENT|wxTEXT_ATTR_RIGHT_INDENT|wxTEXT_ATTR_PARA_SPACING_BEFORE|wxTEXT_ATTR_PARA_SPACING_AFTER|
        wxTEXT_ATTR_LINE_SPACING|