From d458de601b51aa06886507d88b4d26ff469885dd Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Fri, 24 Sep 2021 12:33:26 +0200 Subject: [PATCH] Tech ENABLE_PREVIEW_LAYOUT - Fixed legend layout for tool view --- src/slic3r/GUI/GCodeViewer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index 2e8bbfc9c..b65d401f7 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -3538,6 +3538,8 @@ void GCodeViewer::render_legend(float& legend_height) // extrusion paths section -> title if (m_view_type == EViewType::FeatureType) append_headers({ _u8L(""), _u8L("Time"), _u8L("Percentage"), _u8L("Used filament") }, offsets); + else if (m_view_type == EViewType::Tool) + append_headers({ _u8L(""), _u8L("Used filament"), _u8L(""), _u8L("") }, offsets); else ImGui::Separator(); #else @@ -4121,6 +4123,7 @@ void GCodeViewer::render_legend(float& legend_height) ImGui::Spacing(); ImGui::Separator(); ImGui::Spacing(); + ImGui::Spacing(); toggle_button(Preview::OptionType::Travel, _u8L("Travel"), [line_icon](ImGuiWindow& window, const ImVec2& pos, float size) { line_icon(window, pos, size, Travel_Colors[0]); });