]> git.saurik.com Git - wxWidgets.git/blobdiff - src/richtext/richtextxml.cpp
don't define specifyLevel variable in release builds (fixes gcc and probably others...
[wxWidgets.git] / src / richtext / richtextxml.cpp
index 801c5d2fbcf1fabf206a4ae4678fadad0b860c8b..82170da836ca6d60d28a2ec7663425d90bc98926 100644 (file)
@@ -41,7 +41,7 @@ bool wxRichTextXMLHandler::DoLoadFile(wxRichTextBuffer *buffer, wxInputStream& s
     if (!stream.IsOk())
         return false;
 
-    buffer->Clear();
+    buffer->ResetAndClearCommands();
 
     wxXmlDocument* xmlDoc = new wxXmlDocument;
     bool success = true;