From 399c5a9c98b2f9b6dbf28bc90420d0de831b72a9 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 13 Aug 2020 14:54:13 +0200 Subject: [PATCH] Show description for disabled elevation when pad or pad around is off Follow-up fix for 830d89 --- src/slic3r/GUI/Tab.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 9970eb5b96..a56dadf4f5 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -4055,7 +4055,8 @@ void TabSLAPrint::update() m_config_manipulation.update_print_sla_config(m_config, true); - m_support_object_elevation_description_line->SetText(!m_config->opt_bool("pad_around_object") ? "" : + bool elev = !m_config->opt_bool("pad_enable") || !m_config->opt_bool("pad_around_object"); + m_support_object_elevation_description_line->SetText(elev ? "" : from_u8((boost::format(_u8L("\"%1%\" is disabled because \"%2%\" is on in \"%3%\" category.\n" "To enable \"%1%\", please switch off \"%2%\"")) % _L("Object elevation") % _L("Pad around object") % _L("Pad")).str()));