Don't retrieve unused x-coordinate of the view

This commit is contained in:
Artur Wieczorek 2018-12-28 09:49:58 +01:00
parent 76ff4ab2b6
commit 99c53ca4bb

View File

@ -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;