Removed references to DEBUG and WXDEBUG; cured Motif font problem; removed
some warnings in OGL; fixed bug in wxChoice git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1733,8 +1733,8 @@ void wxDivisionShape::PopupMenu(double x, double y)
|
||||
wxClientDC dc(GetCanvas());
|
||||
GetCanvas()->PrepareDC(dc);
|
||||
|
||||
int mouse_x = (int)(dc.LogicalToDeviceX(x - x1*unit_x));
|
||||
int mouse_y = (int)(dc.LogicalToDeviceY(y - y1*unit_y));
|
||||
int mouse_x = (int)(dc.LogicalToDeviceX((long)(x - x1*unit_x)));
|
||||
int mouse_y = (int)(dc.LogicalToDeviceY((long)(y - y1*unit_y)));
|
||||
|
||||
m_canvas->PopupMenu(oglPopupDivisionMenu, mouse_x, mouse_y);
|
||||
}
|
||||
|
Reference in New Issue
Block a user