]> git.saurik.com Git - wxWidgets.git/commitdiff
use bgcolor when restoring styles as this is what we write, not backgroundcolor
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 19 Jan 2008 03:42:05 +0000 (03:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 19 Jan 2008 03:42:05 +0000 (03:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextxml.cpp

index a9833b3e7437414cac5c5c52a083fba788659322..d169ed227395a5b08b8994219d8dd10604ce7a3e 100644 (file)
@@ -1063,7 +1063,7 @@ bool wxRichTextXMLHandler::GetStyle(wxTextAttr& attr, wxXmlNode* node, bool isPa
             attr.SetTextColour(value);
     }
 
-    value = node->GetAttribute(wxT("backgroundcolor"), wxEmptyString);
+    value = node->GetAttribute(wxT("bgcolor"), wxEmptyString);
     if (!value.empty())
     {
         if (value[0] == wxT('#'))