From e737ea415ddbf9f355a7edbb3b4ddc8b4fa65985 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 24 Oct 2013 13:16:13 -0700 Subject: [PATCH] Fix compilation with UTF-8 wxString --- aegisub/src/validators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/validators.cpp b/aegisub/src/validators.cpp index d0b5e623e..a6cc80261 100644 --- a/aegisub/src/validators.cpp +++ b/aegisub/src/validators.cpp @@ -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();