]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmdproc.cpp
Printing improvements: GetPageInfo() gets called after the DC has
[wxWidgets.git] / src / common / cmdproc.cpp
index 6a7475fadb971d0cddd563c5b45ba24210df067e..09603432bd98bc63c9b09da1fb01f4ffa73c0372 100644 (file)
@@ -69,6 +69,9 @@ wxCommandProcessor::wxCommandProcessor(int maxCommands)
 #endif // wxUSE_MENUS
     m_undoAccelerator = wxT("\tCtrl+Z");
     m_redoAccelerator = wxT("\tCtrl+Y");
+#if !wxUSE_STL
+    m_currentCommand = NULL;
+#endif
 }
 
 wxCommandProcessor::~wxCommandProcessor()
@@ -159,7 +162,11 @@ bool wxCommandProcessor::Undo()
 bool wxCommandProcessor::Redo()
 {
     wxCommand *redoCommand = (wxCommand *) NULL;
-    wxList::compatibility_iterator redoNode;
+    wxList::compatibility_iterator redoNode
+#if !wxUSE_STL
+        = NULL          // just to avoid warnings
+#endif // !wxUSE_STL
+        ;
 
     if ( m_currentCommand )
     {