]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/view.cpp
accept focus, keyboard can be used for navigation (patch 798098)
[wxWidgets.git] / samples / docview / view.cpp
index 348d52f5d99b4ef64754efcb10810a873f514115..b2461fa086f738025a4c3a2752c0546c831b9e43 100644 (file)
@@ -90,7 +90,7 @@ void DrawingView::OnDraw(wxDC *dc)
     dc->SetFont(*wxNORMAL_FONT);
     dc->SetPen(*wxBLACK_PEN);
     
-    wxNode *node = ((DrawingDocument *)GetDocument())->GetDoodleSegments().GetFirst();
+    wxList::compatibility_iterator node = ((DrawingDocument *)GetDocument())->GetDoodleSegments().GetFirst();
     while (node)
     {
         DoodleSegment *seg = (DoodleSegment *)node->GetData();
@@ -127,7 +127,7 @@ bool DrawingView::OnClose(bool deleteWindow)
     
     // Clear the canvas in  case we're in single-window mode,
     // and the canvas stays.
-    canvas->Clear();
+    canvas->ClearBackground();
     canvas->view = (wxView *) NULL;
     canvas = (MyCanvas *) NULL;