From 857bfbfb82a0ded4a6f9413afd53e9195aad5298 Mon Sep 17 00:00:00 2001 From: Clifford Garwood Date: Tue, 14 Apr 2026 09:17:23 -0400 Subject: [PATCH] fix: guard against empty option_set in OG_CustomCtrl widget-only lines update_visibility() and render() both called front() on an empty vector when a CtrlLine had no options (pure widget lines). Added an early-return path in update_visibility() and a null-guard in render(). Co-Authored-By: Claude Sonnet 4.6 --- src/slic3r/GUI/OG_CustomCtrl.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/OG_CustomCtrl.cpp b/src/slic3r/GUI/OG_CustomCtrl.cpp index da4564f537..3eb3ac2edc 100644 --- a/src/slic3r/GUI/OG_CustomCtrl.cpp +++ b/src/slic3r/GUI/OG_CustomCtrl.cpp @@ -723,6 +723,19 @@ void OG_CustomCtrl::CtrlLine::update_visibility(ConfigOptionMode mode) return; const std::vector