mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Fix compilation with UTF-8 wxString
This commit is contained in:
parent
50f92ef573
commit
e737ea415d
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user