Fixes for wx 3.3 in pg_editors.cpp

This commit is contained in:
Alex Shvartzkop 2023-09-14 19:05:20 +03:00
parent ff49d5ada9
commit e6d6a06480
1 changed files with 11 additions and 1 deletions

View File

@ -259,8 +259,18 @@ wxPGWindowList PG_COLOR_EDITOR::CreateControls( wxPropertyGrid* aGrid, wxPGPrope
aGrid->ChangePropertyValue( colorProp, val );
} );
#if wxCHECK_VERSION( 3, 3, 0 )
if( aGrid->GetInternalFlags() & wxPropertyGrid::wxPG_FL_ACTIVATION_BY_CLICK )
#else
if( aGrid->GetInternalFlags() & wxPG_FL_ACTIVATION_BY_CLICK )
aGrid->CallAfter( [=]() { editor->GetNewSwatchColor(); } );
#endif
{
aGrid->CallAfter(
[=]()
{
editor->GetNewSwatchColor();
} );
}
return editor;
}