From 940690ecdbe37c1a7898e78f449fbb0399dae60c Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 7 Dec 2021 10:55:27 +0100 Subject: [PATCH] Follow-up https://github.com/prusa3d/PrusaSlicer/commit/d8ecc191da71f34b584681ee21f4ebae96016241 - Remove from code a condition which has opposite effect effect now. + OptionsGroup::activate_line():Add same as at OG_CustomCtrl::CtrlLine::render() condition for the drawing of a option label. It means that we draw option labels only, if line has more than one option. --- src/slic3r/GUI/OG_CustomCtrl.cpp | 3 --- src/slic3r/GUI/OptionsGroup.cpp | 5 ++--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/slic3r/GUI/OG_CustomCtrl.cpp b/src/slic3r/GUI/OG_CustomCtrl.cpp index 4516e49933..ee19e5da54 100644 --- a/src/slic3r/GUI/OG_CustomCtrl.cpp +++ b/src/slic3r/GUI/OG_CustomCtrl.cpp @@ -79,7 +79,6 @@ void OG_CustomCtrl::init_ctrl_lines() // if we have a single option with no label, no sidetext just add it directly to sizer if (option_set.size() == 1 && opt_group->label_width == 0 && option_set.front().opt.full_width && - option_set.front().opt.label.empty() && option_set.front().opt.sidetext.size() == 0 && option_set.front().side_widget == nullptr && line.get_extra_widgets().size() == 0) { @@ -157,7 +156,6 @@ wxPoint OG_CustomCtrl::get_pos(const Line& line, Field* field_in/* = nullptr*/) // If we have a single option with no sidetext const std::vector