slight simplification of coords translation code in GetBoundingRect()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
96c59453c5
commit
619297ab30
@ -2909,11 +2909,7 @@ bool wxGenericTreeCtrl::GetBoundingRect(const wxTreeItemId& item,
|
||||
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()));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user