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:
@@ -2548,7 +2548,7 @@ void wxPGProperty::Empty()
|
|||||||
|
|
||||||
wxPGProperty* wxPGProperty::GetItemAtY( unsigned int y ) const
|
wxPGProperty* wxPGProperty::GetItemAtY( unsigned int y ) const
|
||||||
{
|
{
|
||||||
unsigned int nextItem;
|
unsigned int nextItem = 0;
|
||||||
return GetItemAtY( y, GetGrid()->GetRowHeight(), &nextItem);
|
return GetItemAtY( y, GetGrid()->GetRowHeight(), &nextItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user