]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for issue #712
authormpv <mpv@opencascade.com>
Thu, 2 Jul 2015 09:05:28 +0000 (12:05 +0300)
committermpv <mpv@opencascade.com>
Thu, 2 Jul 2015 09:05:28 +0000 (12:05 +0300)
src/Model/Model_AttributeRefList.cpp

index d8b6fc005b78c003477ec1c846ca3592513034b1..534e52750464d88efa114ff213565bbf4e05e4f7 100644 (file)
@@ -95,7 +95,7 @@ bool Model_AttributeRefList::isInList(const ObjectPtr& theObj)
       owner()->document());
   if (aDoc) {
     std::shared_ptr<Model_Data> aData = std::dynamic_pointer_cast<Model_Data>(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()) {