git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38730
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
rect.height = GetLineHeight(i);
// we have to return the logical coordinates, not physical ones
rect.height = GetLineHeight(i);
// we have to return the logical coordinates, not physical ones
- int startX, startY;
- GetViewStart(& startX, & startY);
-
- rect.x -= startX*PIXELS_PER_UNIT;
- rect.y -= startY*PIXELS_PER_UNIT;
+ rect.SetTopLeft(CalcScrolledPosition(rect.GetTopLeft()));