From 9394c2ba649b293ed3223f0bfd24ceb69156d8a4 Mon Sep 17 00:00:00 2001 From: azv Date: Mon, 21 May 2018 11:46:05 +0300 Subject: [PATCH] Issue #2481: Application error when create fillet Avoid crash when showing deleted constraint --- src/PartSet/PartSet_ExternalPointsMgr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PartSet/PartSet_ExternalPointsMgr.cpp b/src/PartSet/PartSet_ExternalPointsMgr.cpp index e6969c809..52e0a9d3f 100644 --- a/src/PartSet/PartSet_ExternalPointsMgr.cpp +++ b/src/PartSet/PartSet_ExternalPointsMgr.cpp @@ -101,7 +101,8 @@ QList> PartSet_ExternalPointsMgr::findCirc ResultPtr aResObj = std::dynamic_pointer_cast(aObj); // Do not use Fields and groups in selection in sketcher - if ((aResObj->groupName() == ModelAPI_ResultField::group()) || + if (!aResObj.get() || + (aResObj->groupName() == ModelAPI_ResultField::group()) || (aResObj->groupName() == ModelAPI_ResultGroup::group())) continue; -- 2.39.2