]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/doc.cpp
some really minor changes (the most important one: small memory hole in
[wxWidgets.git] / samples / docview / doc.cpp
index 662fe82e16ba336a7ef647d67be1cd2df15f7b12..04e328c621e748b01f483f05365831639ff70363 100644 (file)
@@ -24,8 +24,8 @@
 #include "wx/wx.h"
 #endif
 
-#if !USE_DOC_VIEW_ARCHITECTURE
-#error You must set USE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
+#if !wxUSE_DOC_VIEW_ARCHITECTURE
+#error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
 #endif
 
 #include "doc.h"
@@ -203,7 +203,7 @@ bool DrawingCommand::Undo(void)
         doc->GetDoodleSegments().Append(segment);
         doc->Modify(TRUE);
         doc->UpdateAllViews();
-        segment = NULL;
+        segment = (DoodleSegment *) NULL;
       }
       doc->Modify(TRUE);
       doc->UpdateAllViews();