diff --git a/src/generic/tabg.cpp b/src/generic/tabg.cpp index c46ff59cd3..2ac60d8afd 100644 --- a/src/generic/tabg.cpp +++ b/src/generic/tabg.cpp @@ -875,8 +875,8 @@ bool wxTabView::OnEvent(wxMouseEvent& event) if (!event.LeftDown()) return FALSE; - long x, y; - event.Position(&x, &y); + wxCoord x, y; + event.GetPosition(&x, &y); wxTabControl *hitControl = (wxTabControl *) NULL;