]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected ViewStart problem
authorJulian Smart <julian@anthemion.co.uk>
Mon, 19 Nov 2001 16:07:18 +0000 (16:07 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 19 Nov 2001 16:07:18 +0000 (16:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/samples/ogl/studio/shapes.cpp

index 84177d13318327c60e7e17a40200f96374b34db2..ded2eb7ba1bd0fd44fbb88d41e3340016740cb8c 100644 (file)
@@ -168,7 +168,7 @@ void csEvtHandler::OnRightClick(double x, double y, int keys, int attachment)
 
     int viewStartX, viewStartY;
     int unitX, unitY;
-    GetShape()->GetCanvas()->ViewStart(& viewStartX, & viewStartY);
+    GetShape()->GetCanvas()->GetViewStart(& viewStartX, & viewStartY);
     GetShape()->GetCanvas()->GetScrollPixelsPerUnit(& unitX, & unitY);
 
     int x1 = (int)(x * GetShape()->GetCanvas()->GetScaleX());