mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 01:16:01 +08:00
fix compilation
This commit is contained in:
parent
743781db53
commit
e831cb07ab
@ -832,13 +832,11 @@ void GCode::do_export(Print* print, const char* path, GCodePreviewData* preview_
|
|||||||
|
|
||||||
#endif // ENABLE_GCODE_VIEWER
|
#endif // ENABLE_GCODE_VIEWER
|
||||||
|
|
||||||
std::error_code err_code;
|
if (rename_file(path_tmp, path)) {
|
||||||
if (rename_file(path_tmp, path))
|
std::string err_msg = ("Failed to rename the output G-code file from " + path_tmp + " to " + path + '\n');
|
||||||
if (copy_file(path_tmp, path, ("Failed to rename the output G-code file from " + path_tmp + " to " + path + '\n' +
|
if (copy_file(path_tmp, path, err_msg, true) != CopyFileResult::SUCCESS)
|
||||||
"Is " + path_tmp + " locked? " + err_code.message() + '\n'), true) != CopyFileResult::SUCCESS)
|
throw Slic3r::RuntimeError(err_msg);
|
||||||
throw Slic3r::RuntimeError(
|
}
|
||||||
std::string("Failed to rename the output G-code file from ") + path_tmp + " to " + path + '\n' +
|
|
||||||
"Is " + path_tmp + " locked? " + err_code.message() + '\n');
|
|
||||||
|
|
||||||
BOOST_LOG_TRIVIAL(info) << "Exporting G-code finished" << log_memory_info();
|
BOOST_LOG_TRIVIAL(info) << "Exporting G-code finished" << log_memory_info();
|
||||||
print->set_done(psGCodeExport);
|
print->set_done(psGCodeExport);
|
||||||
|
@ -2157,7 +2157,7 @@ void GCodeProcessor::store_move_vertex(EMoveType type)
|
|||||||
m_height,
|
m_height,
|
||||||
m_mm3_per_mm,
|
m_mm3_per_mm,
|
||||||
m_fan_speed,
|
m_fan_speed,
|
||||||
m_layer_id, //layer_duration: set later
|
float(m_layer_id), //layer_duration: set later
|
||||||
m_time_processor.machines[0].time, //time: set later
|
m_time_processor.machines[0].time, //time: set later
|
||||||
m_temperature
|
m_temperature
|
||||||
};
|
};
|
||||||
|
@ -1744,11 +1744,11 @@ bool Tab::create_pages(std::string setting_type_name, int idx_page)
|
|||||||
if (!in_line) {
|
if (!in_line) {
|
||||||
if (colored) {
|
if (colored) {
|
||||||
m_colored_Label_colors[setting_id] = &m_default_text_clr;
|
m_colored_Label_colors[setting_id] = &m_default_text_clr;
|
||||||
Line l = current_group->create_single_option_line(option, label_path.empty() ? wxEmptyString : label_path);
|
Line l = current_group->create_single_option_line(option, label_path.empty() ? wxString(wxEmptyString) : wxString(label_path));
|
||||||
l.full_Label_color = m_colored_Label_colors[setting_id];
|
l.full_Label_color = m_colored_Label_colors[setting_id];
|
||||||
current_group->append_line(l);
|
current_group->append_line(l);
|
||||||
} else {
|
} else {
|
||||||
current_group->append_line(current_group->create_single_option_line(option, label_path.empty() ? wxEmptyString : label_path));
|
current_group->append_line(current_group->create_single_option_line(option, label_path.empty() ? wxString(wxEmptyString) : wxString(label_path)));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
current_line.append_option(option);
|
current_line.append_option(option);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user