Fix compilation with UTF-8 wxString

This commit is contained in:
Thomas Goyne 2013-10-24 13:16:13 -07:00
parent 50f92ef573
commit e737ea415d

View file

@ -136,7 +136,7 @@ void DoubleValidator::OnChar(wxKeyEvent& event) {
bool DoubleValidator::TransferToWindow() {
auto str = wxString::Format("%g", *value);
if (decimal_sep != '.')
std::replace(str.begin(), str.end(), wxS('.'), decimal_sep);
std::replace(str.begin(), str.end(), (wxChar)'.', decimal_sep);
if (str.find(decimal_sep) != str.npos) {
while (str.Last() == '0')
str.RemoveLast();