From 54b669d9e8577edfcbcc0c50300392446e48f71a Mon Sep 17 00:00:00 2001 From: mwganson Date: Sat, 28 Sep 2024 19:17:52 -0500 Subject: [PATCH] [Part CheckGeometry] prevent crash when attempting to check origin axis --- src/Mod/Part/Gui/TaskCheckGeometry.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/Gui/TaskCheckGeometry.cpp b/src/Mod/Part/Gui/TaskCheckGeometry.cpp index fc4b003744..03ef606ce3 100644 --- a/src/Mod/Part/Gui/TaskCheckGeometry.cpp +++ b/src/Mod/Part/Gui/TaskCheckGeometry.cpp @@ -433,11 +433,16 @@ void TaskCheckGeometryResults::goCheck() for(const auto &sel : selection) { selectedCount++; TopoDS_Shape shape = Part::Feature::getShape(sel.pObject,sel.SubName,true); - if (shape.IsNull()) + if (shape.IsNull()) { continue; + } + if (shape.Infinite()) { + continue; + } currentSeparator = Gui::Application::Instance->getViewProvider(sel.pObject)->getRoot(); - if (!currentSeparator) + if (!currentSeparator) { continue; + } QString baseName; QTextStream baseStream(&baseName); baseStream << sel.DocName;