Fix wxPropertyGridManager::SelectProperty

Call wxPropertyGridpageState::DoSelectProperty with explicitly set flags instead of casting from bool to unisgned int. It cannot be guaranteed that 0/1 values of this implicit conversion will be mapped to the proper flags also int the future.
This commit is contained in:
Artur Wieczorek
2015-06-29 20:03:25 +02:00
parent 22cc1736ab
commit 2770f76de5

View File

@@ -535,7 +535,11 @@ public:
bool SelectProperty( wxPGPropArg id, bool focus = false )
{
wxPG_PROP_ARG_CALL_PROLOG_RETVAL(false)
return p->GetParentState()->DoSelectProperty(p, focus);
unsigned int flags = wxPG_SEL_DONT_SEND_EVENT;
if ( focus )
flags |= wxPG_SEL_FOCUS;
return p->GetParentState()->DoSelectProperty(p, flags);
}
#if wxUSE_HEADERCTRL