]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2082: Sketch multiple rotation does not work as expected
authorazv <azv@opencascade.com>
Thu, 6 Apr 2017 05:13:55 +0000 (08:13 +0300)
committerazv <azv@opencascade.com>
Thu, 6 Apr 2017 05:13:55 +0000 (08:13 +0300)
Fix crash or restart Trim operation

src/PartSet/PartSet_SketcherMgr.cpp

index 7a9c2c78872af19e2650b8e2404e32920938aac9..7d593a11085cda3157fcd5cc32517464cfb875a8 100755 (executable)
@@ -1729,6 +1729,8 @@ void PartSet_SketcherMgr::storeSelection(const bool theHighlightedOnly)
     else
       aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(anObject);
 
+    if (!aFeature.get())
+      continue;
 
     std::set<AttributePtr> aSelectedAttributes;
     std::set<ResultPtr> aSelectedResults;