From: mpv Date: Wed, 1 Jun 2016 12:17:04 +0000 (+0300) Subject: Fix for the issue #1538 (not reproduced after this) X-Git-Tag: V_2.3.1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=66e150362d8253de4a61106e8db5a3f7c7396de0;p=modules%2Fshaper.git Fix for the issue #1538 (not reproduced after this) --- 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); } }