From 8eda9dc238515015e4f2b31067328b97eb7de82e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 16 Oct 2021 19:53:26 +0200 Subject: [PATCH] Fix error when editing colours in locales with , as a decimal separator. --- src/wx/colour_conversion_editor.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wx/colour_conversion_editor.cc b/src/wx/colour_conversion_editor.cc index 05ec4a65c..8f52c1ff5 100644 --- a/src/wx/colour_conversion_editor.cc +++ b/src/wx/colour_conversion_editor.cc @@ -29,15 +29,15 @@ #include #include #include -#include #include +#include +#include #include using std::cout; using std::dynamic_pointer_cast; using std::make_shared; -using std::shared_ptr; using std::string; using boost::bind; using dcp::locale_convert; @@ -100,7 +100,8 @@ ColourConversionEditor::ColourConversionEditor (wxWindow* parent, bool yuv) wxTextValidator validator (wxFILTER_INCLUDE_CHAR_LIST); wxArrayString list; - wxString n (wxT ("0123456789.-")); + wxString n (wxT("0123456789-")); + n.Append(wxNumberFormatter::GetDecimalSeparator()); for (size_t i = 0; i < n.Length(); ++i) { list.Add (n[i]); } -- 2.30.2