From 27e87b8f48efe91f73b72f59c1ede36bbaf1de7c Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 2 Jul 2015 12:05:28 +0300 Subject: [PATCH] Fix for issue #712 --- src/Model/Model_AttributeRefList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.39.2