From da22959d2cb55da569358d983469c1c1c3b86928 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 27 Jan 2017 15:45:35 +0300 Subject: [PATCH] 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. --- src/Model/Model_AttributeSelection.cpp | 3 +++ 1 file changed, 3 insertions(+) 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()); -- 2.39.2