From 0c144f6cdad8948dc69b6cc71908deeee25980b1 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Mon, 22 Apr 2019 12:43:55 +0200 Subject: [PATCH] User proper value type of wxPG_ATTR_MULTICHOICE_USERSTRINGMODE attribute This attribute is of int type. --- samples/propgrid/propgrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/propgrid/propgrid.cpp b/samples/propgrid/propgrid.cpp index 4048ce3837..640e93d3c2 100644 --- a/samples/propgrid/propgrid.cpp +++ b/samples/propgrid/propgrid.cpp @@ -1429,7 +1429,7 @@ void FormMain::PopulateWithExamples () pg->Append( new wxMultiChoiceProperty( "MultiChoiceProperty", wxPG_LABEL, tchoices, tchoicesValues ) ); - pg->SetPropertyAttribute( "MultiChoiceProperty", wxPG_ATTR_MULTICHOICE_USERSTRINGMODE, true ); + pg->SetPropertyAttribute("MultiChoiceProperty", wxPG_ATTR_MULTICHOICE_USERSTRINGMODE, 1); pg->Append( new wxSizeProperty( "SizeProperty", "Size", GetSize() ) ); pg->Append( new wxPointProperty( "PointProperty", "Position", GetPosition() ) );