use bgcolor when restoring styles as this is what we write, not backgroundcolor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1063,7 +1063,7 @@ bool wxRichTextXMLHandler::GetStyle(wxTextAttr& attr, wxXmlNode* node, bool isPa
|
|||||||
attr.SetTextColour(value);
|
attr.SetTextColour(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
value = node->GetAttribute(wxT("backgroundcolor"), wxEmptyString);
|
value = node->GetAttribute(wxT("bgcolor"), wxEmptyString);
|
||||||
if (!value.empty())
|
if (!value.empty())
|
||||||
{
|
{
|
||||||
if (value[0] == wxT('#'))
|
if (value[0] == wxT('#'))
|
||||||
|
Reference in New Issue
Block a user