]> git.saurik.com Git - wxWidgets.git/blobdiff - user/wxLayout/wxlparser.cpp
First part of fixes to make this work under MSW.
[wxWidgets.git] / user / wxLayout / wxlparser.cpp
index ebd8be4aeef1e4459b8bfaabc9d59c7603ee3668..3370fd5fc74bb9ef364fd58ec1664e55d510ca49 100644 (file)
 #   pragma implementation "wxlparser.h"
 #endif
 
+#include <wx/wxprec.h>
+
+#ifdef __BORLANDC__
+#  pragma hdrstop
+#endif
+
 #include "Mpch.h"
+
 #ifdef M_PREFIX
 #   include "gui/wxllist.h"
 #   include "gui/wxlparser.h"
@@ -237,11 +244,9 @@ wxLayoutExportObject *wxLayoutExport(wxLayoutExportStatus *status,
          *str += ((wxLayoutObjectText *)*status->m_iterator)->GetText();
          break;
       case WXLO_TYPE_CMD:
-         wxASSERT_MSG( mode == WXLO_EXPORT_AS_HTML,
-                       "reached cmd object in text mode" );
-         
-         *str += wxLayoutExportCmdAsHTML(*(wxLayoutObjectCmd const
-                                           *)*status->m_iterator, & status->m_si);
+         if(mode == WXLO_EXPORT_AS_HTML)
+            *str += wxLayoutExportCmdAsHTML(*(wxLayoutObjectCmd const
+                                              *)*status->m_iterator, & status->m_si);
          break;
       default:  // ignore icons
          ;