]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/ogl/ogledit/view.cpp
Compile fix.
[wxWidgets.git] / contrib / samples / ogl / ogledit / view.cpp
index 0d8e58232b9c552d26da423005c13ce388c2d440..1784068187db10905611bd06b365ec34cbc8b792 100644 (file)
@@ -292,8 +292,9 @@ void MyCanvas::OnLeftClick(double x, double y, int keys)
   }
   if (info)
   {
-    view->GetDocument()->GetCommandProcessor()->Submit(new DiagramCommand(info->GetClassName(), OGLEDIT_ADD_SHAPE, (DiagramDocument *)view->GetDocument(), info,
-      x, y));
+    view->GetDocument()->GetCommandProcessor()->Submit(
+      new DiagramCommand((char*) info->GetClassName(), OGLEDIT_ADD_SHAPE, (DiagramDocument *)view->GetDocument(), info,
+         x, y));
   }
 }