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:
@@ -4134,8 +4134,9 @@ wxRect wxListMainWindow::GetViewRect() const
|
|||||||
{
|
{
|
||||||
for ( int i = 0; i < count; i++ )
|
for ( int i = 0; i < count; i++ )
|
||||||
{
|
{
|
||||||
wxRect r;
|
// we need logical, not physical, coordinates here, so use
|
||||||
GetItemRect(i, r);
|
// GetLineRect() instead of GetItemRect()
|
||||||
|
wxRect r = GetLineRect(i);
|
||||||
|
|
||||||
wxCoord x = r.GetRight(),
|
wxCoord x = r.GetRight(),
|
||||||
y = r.GetBottom();
|
y = r.GetBottom();
|
||||||
|
Reference in New Issue
Block a user