Don't retrieve unused x-coordinate of the view
This commit is contained in:
parent
76ff4ab2b6
commit
99c53ca4bb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user