Skip to content

Commit

Permalink
Trying two changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cochcoder committed Mar 12, 2024
1 parent d0b574a commit 647e5c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/libslic3r/PrintConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2528,7 +2528,7 @@ def = this->add("filament_loading_speed", coFloats);
def->height = 5;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionString());
// def->cli = ConfigOptionDef::nocli;
def->cli = ConfigOptionDef::nocli;

// Orca: may remove this option later
def =this->add("support_chamber_temp_control",coBool);
Expand Down
18 changes: 9 additions & 9 deletions src/slic3r/GUI/GCodeViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4322,7 +4322,7 @@ void GCodeViewer::render_all_plates_stats(const std::vector<const GCodeProcessor
imgui.text(_u8L("Filament cost") + ":");
ImGui::SameLine();
char buf[64];
std::sprintf(buf, "%s%.2f", ps.currency.c_str(), filament_cost_all_plates);
::sprintf(buf, "%.2f", ps.currency + filament_cost_all_plates);
imgui.text(buf);
}

Expand All @@ -4332,7 +4332,7 @@ void GCodeViewer::render_all_plates_stats(const std::vector<const GCodeProcessor
imgui.text(_u8L("Electric cost") + ":");
ImGui::SameLine();
char buf[64];
std::sprintf(buf, "%s%.2f", ps.currency.c_str(), electric_cost_all_plates);
::sprintf(buf, "%.2f", ps.currency + electric_cost_all_plates);
imgui.text(buf);
}

Expand All @@ -4342,7 +4342,7 @@ void GCodeViewer::render_all_plates_stats(const std::vector<const GCodeProcessor
imgui.text(_u8L("Other costs") + ":");
ImGui::SameLine();
char buf[64];
std::sprintf(buf, "%s%.2f", ps.currency.c_str(), other_costs_all_plates);
::sprintf(buf, "%.2f", ps.currency + other_costs_all_plates);
imgui.text(buf);
}

Expand All @@ -4352,7 +4352,7 @@ void GCodeViewer::render_all_plates_stats(const std::vector<const GCodeProcessor
imgui.text(_u8L("Total cost") + ":");
ImGui::SameLine();
char buf[64];
std::sprintf(buf, "%s%.2f", ps.currency.c_str(), total_cost_all_plates);
::sprintf(buf, "%.2f", ps.currency + total_cost_all_plates);
imgui.text(buf);
}
}
Expand Down Expand Up @@ -5135,7 +5135,7 @@ void GCodeViewer::render_legend(float &legend_height, int canvas_width, int canv
ImGui::SameLine();
imgui.text(_u8L("Filament cost")+":");
ImGui::SameLine();
std::sprintf(buf, "%s%.2f", ps.currency.c_str(), ps.total_filament_cost);
::sprintf(buf, "%.2f", ps.currency + ps.total_filament_cost);
imgui.text(buf);
}

Expand Down Expand Up @@ -5607,7 +5607,7 @@ void GCodeViewer::render_legend(float &legend_height, int canvas_width, int canv
imgui.text(cost_filament+":");
ImGui::SameLine(max_len);
char buf[64];
std::sprintf(buf, "%s%.2f", ps.currency.c_str(), ps.total_filament_cost);
::sprintf(buf, "%.2f", ps.currency + ps.total_filament_cost);
imgui.text(buf);
}

Expand All @@ -5618,7 +5618,7 @@ void GCodeViewer::render_legend(float &legend_height, int canvas_width, int canv
imgui.text(cost_energy+":");
ImGui::SameLine(max_len);
char buf[64];
std::sprintf(buf, "%s%.2f", ps.currency.c_str(), ps.electric_cost);
::sprintf(buf, "%.2f", ps.currency + ps.electric_cost);
imgui.text(buf);
}

Expand All @@ -5629,7 +5629,7 @@ void GCodeViewer::render_legend(float &legend_height, int canvas_width, int canv
imgui.text(other_costs+":");
ImGui::SameLine(max_len);
char buf[64];
std::sprintf(buf, "%s%.2f", ps.currency.c_str(), ps.other_costs);;
::sprintf(buf, "%.2f", ps.currency + ps.other_costs);
imgui.text(buf);
}

Expand All @@ -5640,7 +5640,7 @@ void GCodeViewer::render_legend(float &legend_height, int canvas_width, int canv
imgui.text(total_cost+":");
ImGui::SameLine(max_len);
char buf[64];
std::sprintf(buf, "%s%.2f", ps.currency.c_str(), ps.total_cost);
::sprintf(buf, "%.2f", ps.currency + ps.total_cost);
imgui.text(buf);
}
}
Expand Down

0 comments on commit 647e5c2

Please sign in to comment.