fix view rectangle calculation for the control with scrollbars (#9467)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-08-03 12:15:30 +00:00
parent 8679c16313
commit 00a6c15a74

View File

@@ -4134,8 +4134,9 @@ wxRect wxListMainWindow::GetViewRect() const
{
for ( int i = 0; i < count; i++ )
{
wxRect r;
GetItemRect(i, r);
// we need logical, not physical, coordinates here, so use
// GetLineRect() instead of GetItemRect()
wxRect r = GetLineRect(i);
wxCoord x = r.GetRight(),
y = r.GetBottom();