mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-18 21:20:57 +00:00
FIX: all plates stats crash
Change-Id: Iad42b9777e4f3fab4a432b73865d4bd7dd530fd3
This commit is contained in:
1 parent
2fc699be6a
commit
0576e3e4fd
2 files changed
+12
-1
No files matched your search
@@ -4122,6 +4122,10 @@ void GCodeViewer::render_shells()
|
||||
void GCodeViewer::render_all_plates_stats(const std::vector<const GCodeProcessorResult*>& gcode_result_list, bool show /*= true*/) const {
|
||||
if (!show)
|
||||
return;
|
||||
for (auto gcode_result : gcode_result_list) {
|
||||
if (gcode_result->moves.size() == 0)
|
||||
return;
|
||||
}
|
||||
ImGuiWrapper& imgui = *wxGetApp().imgui();
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f);
|
||||
|
||||
Reference in new issue
Block a user