From: Nabil Ghodbane Date: Thu, 19 May 2022 14:06:46 +0000 (+0200) Subject: check SPNS #29944 SHAPER filet patch X-Git-Tag: V9_9_0~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e28b0fb17ea3b246c4e0ca0bc85d366601a7ef55;p=tools%2Fsat_salome.git check SPNS #29944 SHAPER filet 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 ++}