always return something in GetCommandForVerb() second argument, even if verb not found

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-03-09 19:09:22 +00:00
parent 9e2bd1354a
commit 8a7fc9b5a7

View File

@@ -124,6 +124,11 @@ public:
if ( idx )
*idx = n;
}
else if ( idx )
{
// different from any valid index
*idx = (size_t)-1;
}
return s;
}