]> git.saurik.com Git - wxWidgets.git/commitdiff
bug #101 (wxListCtrl::GetItemRect() returns rectangle with incorrect height) fixed
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Aug 2000 10:12:26 +0000 (10:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Aug 2000 10:12:26 +0000 (10:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index b2febb84362ef4b014b4c269c284fed6230b48d7..8634a74f8a71098b018c0dd27282d9207c8c8b9f 100644 (file)
@@ -777,7 +777,7 @@ bool wxListCtrl::GetItemRect(long item, wxRect& rect, int code) const
     rect.x = rect2.left;
     rect.y = rect2.top;
     rect.width = rect2.right - rect2.left;
-    rect.height = rect2.bottom - rect2.left;
+    rect.height = rect2.bottom - rect2.top;
     return success;
 }