From: mpv Date: Fri, 27 Jan 2017 12:45:35 +0000 (+0300) Subject: Fixed the crash on edition of feature when the selected argument disappeared. Related... X-Git-Tag: V_2.7.0~303 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=da22959d2cb55da569358d983469c1c1c3b86928;p=modules%2Fshaper.git Fixed the crash on edition of feature when the selected argument disappeared. Related to the issue #2002 where after correction of ExtrusionCut_3 edit Plane referenced to the not-existing anymore result. --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index 39d1d4557..83c61b4e3 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -1008,6 +1008,9 @@ std::string Model_AttributeSelection::namingName(const std::string& theDefaultNa std::shared_ptr aSubSh = value(); ResultPtr aCont = context(); + if (!aCont.get()) // in case of selection of removed result + return ""; + Model_SelectionNaming aSelNaming(selectionLabel()); return aSelNaming.namingName( aCont, aSubSh, theDefaultName, owner()->document() != aCont->document());