From: mpv Date: Mon, 24 Aug 2015 12:54:55 +0000 (+0300) Subject: Make the Part result selectable (the fix for crash) X-Git-Tag: V_1.4.0_beta4~275 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1e8342c583dee2fe1d8a2a14c0bdefab08c239b0;p=modules%2Fshaper.git Make the Part result selectable (the fix for crash) --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index 767e86331..07b913161 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -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(); } else { aShape = theSubShape->impl();