From: mpv Date: Tue, 25 Dec 2018 06:33:12 +0000 (+0300) Subject: Restore the RefList hashing X-Git-Tag: End2018~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e6767852a69d853c0feb6fee1ac73696656e8bff;p=modules%2Fshaper.git Restore the RefList hashing --- diff --git a/src/Model/Model_AttributeRefList.cpp b/src/Model/Model_AttributeRefList.cpp index 23849b7c5..cae128509 100644 --- a/src/Model/Model_AttributeRefList.cpp +++ b/src/Model/Model_AttributeRefList.cpp @@ -315,9 +315,8 @@ void Model_AttributeRefList::reinit() void Model_AttributeRefList::createHash() { - if (myHashUsed) { + if (myHashUsed) return; - } eraseHash(); std::shared_ptr aDoc = std::dynamic_pointer_cast( owner()->document()); @@ -333,9 +332,10 @@ void Model_AttributeRefList::createHash() } } } + if (!myHashObjects.empty()) // on open document with multi-rotation referenced have no results + myHashUsed = true; } - void Model_AttributeRefList::eraseHash() { myHashObjects.clear();