From e6767852a69d853c0feb6fee1ac73696656e8bff Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 25 Dec 2018 09:33:12 +0300 Subject: [PATCH] Restore the RefList hashing --- src/Model/Model_AttributeRefList.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.39.2