diff --git a/src/richtext/richtextxml.cpp b/src/richtext/richtextxml.cpp index 5e9d5fe850..bda4f8c857 100644 --- a/src/richtext/richtextxml.cpp +++ b/src/richtext/richtextxml.cpp @@ -294,7 +294,7 @@ bool wxRichTextXMLHandler::ImportStyleDefinition(wxRichTextStyleSheet* sheet, wx if (child->GetName() == wxT("style")) { wxTextAttrEx attr; - GetStyle(attr, child, false); + GetStyle(attr, child, true); def->SetStyle(attr); } child = child->GetNext(); @@ -316,7 +316,7 @@ bool wxRichTextXMLHandler::ImportStyleDefinition(wxRichTextStyleSheet* sheet, wx if (child->GetName() == wxT("style")) { wxTextAttrEx attr; - GetStyle(attr, child, false); + GetStyle(attr, child, true); wxString styleLevel = child->GetPropVal(wxT("level"), wxEmptyString); if (styleLevel.IsEmpty()) @@ -895,13 +895,13 @@ bool wxRichTextXMLHandler::ExportStyleDefinition(wxOutputStream& stream, wxMBCon OutputIndentation(stream, level); if (!listDef->GetNextStyle().IsEmpty()) - baseStyleProp << wxT(" basestyle=\"") << listDef->GetNextStyle() << wxT("\""); + baseStyleProp << wxT(" nextstyle=\"") << listDef->GetNextStyle() << wxT("\""); OutputString(stream, wxT(""), convMem, convFile); level ++; - wxString style = CreateStyle(def->GetStyle(), false); + wxString style = CreateStyle(def->GetStyle(), true); OutputIndentation(stream, level); OutputString(stream, wxT("