mirror of
https://github.com/QIDITECH/QIDIStudio.git
synced 2026-01-31 00:48:41 +03:00
fix bug
This commit is contained in:
@@ -3017,8 +3017,10 @@ namespace Skirt {
|
||||
|
||||
inline std::string get_instance_name(const PrintObject* object, size_t inst_id) {
|
||||
auto obj_name = object->model_object()->name;
|
||||
// replace space in obj_name with '-'
|
||||
std::replace(obj_name.begin(), obj_name.end(), ' ', '_');
|
||||
|
||||
// replace special char in obj_name with '-'
|
||||
const std::string banned = "\b\t\n\v\f\r \"#%&\'*-./:;<>\\";
|
||||
std::replace_if(obj_name.begin(), obj_name.end(), [&banned](char c) { return banned.find(c) != std::string::npos; }, '_');
|
||||
|
||||
return (boost::format("%1%_id_%2%_copy_%3%") % obj_name % object->get_klipper_object_id() % inst_id).str();
|
||||
}
|
||||
|
||||
@@ -632,7 +632,7 @@ void CalibrationPresetPage::create_page_max_volumetric_speed(wxWindow* parent, w
|
||||
std::string title_text_2 = "Step 2";
|
||||
Label* content_2{ nullptr };
|
||||
std::string content_text_2 = "It can be observed that at a certain height, the model begins to show missing fibers. There are two methods to measure the maximum volumetric velocity:\
|
||||
\n1. Observing the number of notches nums on the right side, you can use StartV + (step * 2) = Max Volumetric Speed.\
|
||||
\n1. Observing the number of notches nums on the right side, you can use Startv + (step * 2) * nums = Max Volumetric Speed.\
|
||||
\n2. In the \"Preview\" interface, view the Gcode of the model, find the \"Flow\" value corresponding to the missing part, and save it.";
|
||||
create_paragraph(parent, title_2, title_text_2, content_2, content_text_2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user