From: mpv Date: Thu, 2 Jul 2015 09:05:28 +0000 (+0300) Subject: Fix for issue #712 X-Git-Tag: V_1.3.0~127 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=27e87b8f48efe91f73b72f59c1ede36bbaf1de7c;p=modules%2Fshaper.git Fix for issue #712 --- diff --git a/src/Model/Model_AttributeRefList.cpp b/src/Model/Model_AttributeRefList.cpp index d8b6fc005..534e52750 100644 --- a/src/Model/Model_AttributeRefList.cpp +++ b/src/Model/Model_AttributeRefList.cpp @@ -95,7 +95,7 @@ bool Model_AttributeRefList::isInList(const ObjectPtr& theObj) owner()->document()); if (aDoc) { std::shared_ptr aData = std::dynamic_pointer_cast(theObj->data()); - if (aData.get()) { + if (aData.get() && aData->isValid()) { TDF_Label anObjLab = aData->label().Father(); const TDF_LabelList& aList = myRef->List(); for (TDF_ListIteratorOfLabelList aLIter(aList); aLIter.More(); aLIter.Next()) {