mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-11 03:32:24 +00:00
Fixed conversion to utf8 of strings entered using Custom G-code dialog
This commit is contained in:
1 parent
ac813e8e76
commit
66f6c8c786
1 file changed
+2
-2
@@ -2165,7 +2165,7 @@ static std::string get_custom_code(const std::string& code_in, double height)
|
|||||||
if (dlg.ShowModal() != wxID_OK)
|
if (dlg.ShowModal() != wxID_OK)
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
value = dlg.GetValue().ToStdString();
|
value = into_u8(dlg.GetValue());
|
||||||
valid = GUI::Tab::validate_custom_gcode("Custom G-code", value);
|
valid = GUI::Tab::validate_custom_gcode("Custom G-code", value);
|
||||||
} while (!valid);
|
} while (!valid);
|
||||||
return value;
|
return value;
|
||||||
@@ -2173,7 +2173,7 @@ static std::string get_custom_code(const std::string& code_in, double height)
|
|||||||
if (dlg.ShowModal() != wxID_OK)
|
if (dlg.ShowModal() != wxID_OK)
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
return dlg.GetValue().ToStdString();
|
return into_u8(dlg.GetValue());
|
||||||
#endif // ENABLE_VALIDATE_CUSTOM_GCODE
|
#endif // ENABLE_VALIDATE_CUSTOM_GCODE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user