]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make the Part result selectable (the fix for crash)
authormpv <mpv@opencascade.com>
Mon, 24 Aug 2015 12:54:55 +0000 (15:54 +0300)
committermpv <mpv@opencascade.com>
Mon, 24 Aug 2015 12:54:55 +0000 (15:54 +0300)
src/Model/Model_AttributeSelection.cpp

index 767e86331386183fe001085890b1f41722e11874..07b91316184cd4f77305d81f429a1812770f9e26 100644 (file)
@@ -745,7 +745,7 @@ bool Model_AttributeSelection::selectPart(
   // store the shape (in case part is not loaded it should be usefull
   TopoDS_Shape aShape;
   std::string aName = theContext->data()->name();
-  if (theSubShape->isNull()) {// the whole part shape is selected
+  if (!theSubShape.get() || theSubShape->isNull()) {// the whole part shape is selected
     aShape = theContext->shape()->impl<TopoDS_Shape>();
   } else {
     aShape = theSubShape->impl<TopoDS_Shape>();