From e28b0fb17ea3b246c4e0ca0bc85d366601a7ef55 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Thu, 19 May 2022 16:06:46 +0200 Subject: [PATCH] check SPNS #29944 SHAPER filet patch --- products/SHAPER.pyconf | 1 + products/patches/SPNS_29944.patch | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 products/patches/SPNS_29944.patch diff --git a/products/SHAPER.pyconf b/products/SHAPER.pyconf index a716a80..0b5bac6 100644 --- a/products/SHAPER.pyconf +++ b/products/SHAPER.pyconf @@ -45,6 +45,7 @@ default : has_unit_tests : "yes" } cmake_options : "-DCMAKE_CXX_FLAGS=-fpermissive -DNO_SolveSpace=TRUE -DSWIG_EXECUTABLE=${SWIG_ROOT_DIR}/bin/swig -DADD_COMPATIBILITY_TESTS=ON -DADD_MODELS_TESTS=ON -DADD_HDF_TESTS=ON" + patches : ["SPNS_29944.patch"] } default_win : diff --git a/products/patches/SPNS_29944.patch b/products/patches/SPNS_29944.patch new file mode 100644 index 0000000..d8ddb67 --- /dev/null +++ b/products/patches/SPNS_29944.patch @@ -0,0 +1,22 @@ +diff --git a/src/ModuleBase/ModuleBase_WidgetSelector.cpp b/src/ModuleBase/ModuleBase_WidgetSelector.cpp +index 6876a337f..65444345e 100644 +--- a/src/ModuleBase/ModuleBase_WidgetSelector.cpp ++++ b/src/ModuleBase/ModuleBase_WidgetSelector.cpp +@@ -73,7 +73,9 @@ void ModuleBase_WidgetSelector::getGeomSelection(const ModuleBase_ViewerPrsPtr& + theShape = aSelection->getShape(thePrs); + + FeaturePtr aFeature = ModelAPI_Feature::feature(theObject); +- while (aFeature && aFeature->lastResult()->groupName() == ModelAPI_ResultGroup::group()) { ++ while (aFeature.get() && ++ aFeature->lastResult().get() && ++ aFeature->lastResult()->groupName() == ModelAPI_ResultGroup::group()) { + if (!getObjectFromGroup(theObject, theShape)) + break; + aFeature = ModelAPI_Feature::feature(theObject); +@@ -297,4 +299,4 @@ bool getObjectFromGroup(ObjectPtr& theObject, GeomShapePtr& theShape) + } + } + return false; +-} +\ No newline at end of file ++} -- 2.39.2