#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 setup.h!
#endif
#include "doc.h"
doc->GetDoodleSegments().Append(segment);
doc->Modify(TRUE);
doc->UpdateAllViews();
- segment = NULL;
+ segment = (DoodleSegment *) NULL;
}
doc->Modify(TRUE);
doc->UpdateAllViews();
TextEditView *view = (TextEditView *)GetFirstView();
if (view)
{
- return (wxDocument::IsModified() || view->textsw->Modified());
+ return (wxDocument::IsModified() || view->textsw->IsModified());
}
else
return wxDocument::IsModified();