Fix uninitialized variable use in wxPropertyGrid code.
wxPGProperty::GetItemAtY() uses its input/output "nextItem" parameter, so it must be initialized before calling it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
461e38f17c
commit
5e204ab52e
@ -2548,7 +2548,7 @@ void wxPGProperty::Empty()
|
||||
|
||||
wxPGProperty* wxPGProperty::GetItemAtY( unsigned int y ) const
|
||||
{
|
||||
unsigned int nextItem;
|
||||
unsigned int nextItem = 0;
|
||||
return GetItemAtY( y, GetGrid()->GetRowHeight(), &nextItem);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user