From 83ef06d42e6450fb59b23890067138bd54d4482d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 21 Dec 2010 11:12:53 +0000 Subject: [PATCH] XML output corrections git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@66422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextxml.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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("