From 8432726ba813dae8fe96cbd2795c69ed4036ef37 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sat, 22 Dec 2018 12:00:20 +0100 Subject: [PATCH] Make string literal wxChar* string This macro parameter is passed to wxArrayStringProperty::OnButtonClick() parameter of wxChar* type. char* string interpreted in this function as a wxChar* string results in obtaining invalid Unicode characters. This fixes a regression introduced in b70ed2d8c84cadf10bd42fc052a255fac02391e4. Closes #18307. --- samples/propgrid/sampleprops.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/propgrid/sampleprops.cpp b/samples/propgrid/sampleprops.cpp index 9a3b7a1b41..92ea1316ed 100644 --- a/samples/propgrid/sampleprops.cpp +++ b/samples/propgrid/sampleprops.cpp @@ -277,7 +277,7 @@ wxVariant wxPointProperty::ChildChanged( wxVariant& thisValue, // ----------------------------------------------------------------------- WX_PG_IMPLEMENT_ARRAYSTRING_PROPERTY_WITH_VALIDATOR(wxDirsProperty, ',', - "Browse") + wxT("Browse")) // This literal has to be of wxChar* type #if wxUSE_VALIDATORS