From 66e150362d8253de4a61106e8db5a3f7c7396de0 Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 1 Jun 2016 15:17:04 +0300 Subject: [PATCH] Fix for the issue #1538 (not reproduced after this) --- src/Model/Model_AttributeRefAttrList.cpp | 9 ++++++--- src/ModuleBase/ModuleBase_Tools.cpp | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Model/Model_AttributeRefAttrList.cpp b/src/Model/Model_AttributeRefAttrList.cpp index 94b301921..3cfd46274 100755 --- a/src/Model/Model_AttributeRefAttrList.cpp +++ b/src/Model/Model_AttributeRefAttrList.cpp @@ -142,10 +142,13 @@ std::list > Model_AttributeRefAttrList::list( TDataStd_ListIteratorOfListOfExtendedString anIDIter(anIDList); for (; aLIter.More(); aLIter.Next(), anIDIter.Next()) { ObjectPtr anObj; - if (!aLIter.Value().IsNull()) + if (!aLIter.Value().IsNull()) { anObj = aDoc->objects()->object(aLIter.Value()); - aResult.push_back(std::pair(anObj, - anObj->data()->attribute(TCollection_AsciiString(anIDIter.Value()).ToCString()))); + aResult.push_back(std::pair(anObj, + anObj->data()->attribute(TCollection_AsciiString(anIDIter.Value()).ToCString()))); + } else { + aResult.push_back(std::pair(ObjectPtr(), AttributePtr())); + } } } return aResult; diff --git a/src/ModuleBase/ModuleBase_Tools.cpp b/src/ModuleBase/ModuleBase_Tools.cpp index 28e41314f..043709e8f 100755 --- a/src/ModuleBase/ModuleBase_Tools.cpp +++ b/src/ModuleBase/ModuleBase_Tools.cpp @@ -123,7 +123,7 @@ void setShadowEffect(QWidget* theWidget, const bool isSetEffect) else { QGraphicsEffect* anEffect = theWidget->graphicsEffect(); if(anEffect) - anEffect->deleteLater(); + anEffect->deleteLater(); theWidget->setGraphicsEffect(NULL); } } -- 2.39.2