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:
@@ -535,7 +535,11 @@ public:
|
|||||||
bool SelectProperty( wxPGPropArg id, bool focus = false )
|
bool SelectProperty( wxPGPropArg id, bool focus = false )
|
||||||
{
|
{
|
||||||
wxPG_PROP_ARG_CALL_PROLOG_RETVAL(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
|
#if wxUSE_HEADERCTRL
|
||||||
|
Reference in New Issue
Block a user