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:
Vadim Zeitlin 2014-02-21 00:51:55 +00:00
parent 461e38f17c
commit 5e204ab52e

View File

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