projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96c5945
)
slight simplification of coords translation code in GetBoundingRect()
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Sat, 15 Apr 2006 01:16:52 +0000
(
01:16
+0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Sat, 15 Apr 2006 01:16:52 +0000
(
01:16
+0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38730
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/generic/treectlg.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/generic/treectlg.cpp
b/src/generic/treectlg.cpp
index 31b1d054a66d0f089c623b84c343ee9aa3077fa0..e190fde07597916942262128004c40774763d715 100644
(file)
--- a/
src/generic/treectlg.cpp
+++ b/
src/generic/treectlg.cpp
@@
-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;
}