X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92a19c2e7757ba742846f83e56356de0a607bdc2..c80217d1075b038dcfad8f657a620d89bf565493:/contrib/samples/ogl/studio/view.cpp diff --git a/contrib/samples/ogl/studio/view.cpp b/contrib/samples/ogl/studio/view.cpp index f24da9d60c..92fde551e1 100644 --- a/contrib/samples/ogl/studio/view.cpp +++ b/contrib/samples/ogl/studio/view.cpp @@ -160,7 +160,7 @@ bool csDiagramView::OnClose(bool deleteWindow) csDiagramDocument *diagramDoc = (csDiagramDocument *)GetDocument(); diagramDoc->GetDiagram()->SetCanvas(NULL); - canvas->Clear(); + canvas->ClearBackground(); canvas->SetDiagram(NULL); canvas->SetView(NULL); canvas = NULL; @@ -177,7 +177,7 @@ bool csDiagramView::OnClose(bool deleteWindow) { frame->Destroy(); } - + return TRUE; }