mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
Will clang & gcc eat it now?
This commit is contained in:
parent
f529269f62
commit
ea8b3a5dc0
4 changed files with 4 additions and 4 deletions
|
@ -220,7 +220,7 @@ void SpinCtrl::BUILD() {
|
|||
// # gets the old one, and on_kill_focus resets the control to the old value.
|
||||
// # As a workaround, we get the new value from $event->GetString and store
|
||||
// # here temporarily so that we can return it from $self->get_value
|
||||
std::string value = e.GetString().utf8_str();
|
||||
std::string value = e.GetString().utf8_str().data();
|
||||
if (is_matched(value, "^\\d+$"))
|
||||
tmp_value = std::stoi(value);
|
||||
on_change_field(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue