forked from mia/Aegisub
Fix compilation with UTF-8 wxString
This commit is contained in:
parent
50f92ef573
commit
e737ea415d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue