diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-10-16 19:53:26 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-10-16 19:53:49 +0200 |
| commit | 76d9b784295f16a9d53d910fac18761e3e633c22 (patch) | |
| tree | daea2dc0c026aa7408d8c679f1262495474159fd /src/wx/colour_conversion_editor.cc | |
| parent | c8fa584045ad65283a85015f18ee8789ddf881d1 (diff) | |
Fix error when editing colours in locales with , as a decimal separator.
Diffstat (limited to 'src/wx/colour_conversion_editor.cc')
| -rw-r--r-- | src/wx/colour_conversion_editor.cc | 7 |
1 files 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 <dcp/identity_transfer_function.h> #include <dcp/s_gamut3_transfer_function.h> #include <dcp/modified_gamma_transfer_function.h> -#include <wx/spinctrl.h> #include <wx/gbsizer.h> +#include <wx/numformatter.h> +#include <wx/spinctrl.h> #include <iostream> 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]); } |
