From 792cee18016a42c75f2ef7d1a2be073bdc74bead Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 14 May 2024 23:08:02 +0200 Subject: [PATCH] Mesure: Ignore ValueError exceptions in quick measure --- src/Mod/Measure/Gui/QuickMeasure.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Measure/Gui/QuickMeasure.cpp b/src/Mod/Measure/Gui/QuickMeasure.cpp index 76cc9729d1..ac18cb2420 100644 --- a/src/Mod/Measure/Gui/QuickMeasure.cpp +++ b/src/Mod/Measure/Gui/QuickMeasure.cpp @@ -66,6 +66,10 @@ void QuickMeasure::onSelectionChanged(const Gui::SelectionChanges& msg) // ignore this exception because it can be caused by trying to access a non-existing // sub-element e.g. when selecting a construction geometry in sketcher } + catch (const Base::ValueError&) { + // ignore this exception because it can be caused by trying to access a non-existing + // sub-element e.g. when selecting a constraint in sketcher + } catch (const Base::Exception& e) { e.ReportException(); }