mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
GCC requires explicit conversion from wxString to std::string.
This commit is contained in:
@@ -220,8 +220,8 @@ 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
|
||||
// #<23>here temporarily so that we can return it from $self->get_value
|
||||
std::string value = e.GetString();
|
||||
if (is_matched(value, "^\d+$"))
|
||||
std::string value = e.GetString().utf8_str();
|
||||
if (is_matched(value, "^\\d+$"))
|
||||
tmp_value = std::stoi(value);
|
||||
on_change_field(e);
|
||||
// # We don't reset tmp_value here because _on_change might put callbacks
|
||||
|
||||
Reference in New Issue
Block a user