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

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

View File

@ -4104,8 +4104,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();