From 99c53ca4bbe25e6e65bd0594debcf5c3b642d54e Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 28 Dec 2018 09:49:58 +0100 Subject: [PATCH] Don't retrieve unused x-coordinate of the view --- src/propgrid/propgrid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index d14243b09f..6a362c202d 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -2855,8 +2855,8 @@ void wxPropertyGrid::CenterSplitter( bool enableAutoResizing ) // it itself will be returned wxPGProperty* wxPropertyGrid::GetNearestPaintVisible( wxPGProperty* p ) const { - int vx,vy1;// Top left corner of client - GetViewStart(&vx,&vy1); + int vy1;// Top left corner of client + GetViewStart(NULL,&vy1); vy1 *= wxPG_PIXELS_PER_UNIT; int vy2 = vy1 + m_height;