By default, always refresh editor and redraw properties when property value is changed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -543,13 +543,7 @@ void wxPropertyGridInterface::SetPropVal( wxPGPropArg id, wxVariant& value )
|
||||
wxPG_PROP_ARG_CALL_PROLOG()
|
||||
|
||||
if ( p )
|
||||
{
|
||||
p->SetValue(value);
|
||||
wxPropertyGrid* propGrid = p->GetGridIfDisplayed();
|
||||
if ( propGrid )
|
||||
propGrid->DrawItemAndValueRelated( p );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
@@ -558,12 +552,8 @@ void wxPropertyGridInterface::SetPropertyValueString( wxPGPropArg id, const wxSt
|
||||
{
|
||||
wxPG_PROP_ARG_CALL_PROLOG()
|
||||
|
||||
if ( m_pState->DoSetPropertyValueString(p,value) )
|
||||
{
|
||||
wxPropertyGrid* propGrid = p->GetGridIfDisplayed();
|
||||
if ( propGrid )
|
||||
propGrid->DrawItemAndValueRelated( p );
|
||||
}
|
||||
if ( p )
|
||||
m_pState->DoSetPropertyValueString(p, value);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user