diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index ae168617e6..54203e53c6 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -11406,6 +11406,7 @@ public: wxRichTextBuffer::InitStandardHandlers(); wxRichTextParagraph::InitDefaultTabs(); +#if wxUSE_XML wxRichTextXMLHandler::RegisterNodeName(wxT("text"), wxT("wxRichTextPlainText")); wxRichTextXMLHandler::RegisterNodeName(wxT("symbol"), wxT("wxRichTextPlainText")); wxRichTextXMLHandler::RegisterNodeName(wxT("image"), wxT("wxRichTextImage")); @@ -11415,6 +11416,7 @@ public: wxRichTextXMLHandler::RegisterNodeName(wxT("cell"), wxT("wxRichTextCell")); wxRichTextXMLHandler::RegisterNodeName(wxT("table"), wxT("wxRichTextTable")); wxRichTextXMLHandler::RegisterNodeName(wxT("field"), wxT("wxRichTextField")); +#endif // wxUSE_XML return true; } @@ -11423,7 +11425,9 @@ public: wxRichTextBuffer::CleanUpHandlers(); wxRichTextBuffer::CleanUpDrawingHandlers(); wxRichTextBuffer::CleanUpFieldTypes(); +#if wxUSE_XML wxRichTextXMLHandler::ClearNodeToClassMap(); +#endif // wxUSE_XML wxRichTextDecimalToRoman(-1); wxRichTextParagraph::ClearDefaultTabs(); wxRichTextCtrl::ClearAvailableFontNames();