From e6d6a064805510b1bfce055e25a34ab17572d818 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Thu, 14 Sep 2023 19:05:20 +0300 Subject: [PATCH] Fixes for wx 3.3 in pg_editors.cpp --- common/properties/pg_editors.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/common/properties/pg_editors.cpp b/common/properties/pg_editors.cpp index 7ae8d76b44..910fe0301e 100644 --- a/common/properties/pg_editors.cpp +++ b/common/properties/pg_editors.cpp @@ -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; }