Corrected ViewStart problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user