From fc3f8df5b0bdbb6ebe10a4cc1b1e3c621b6f64e3 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 8 May 2018 11:32:27 +0300 Subject: [PATCH] Fix bug with caching removed items. --HG-- branch : develop --- src/app/valentina/xml/vpattern.cpp | 1 + src/libs/ifc/xml/vdomdocument.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/valentina/xml/vpattern.cpp b/src/app/valentina/xml/vpattern.cpp index f57be943b..d70adff4f 100644 --- a/src/app/valentina/xml/vpattern.cpp +++ b/src/app/valentina/xml/vpattern.cpp @@ -4221,6 +4221,7 @@ void VPattern::PrepareForParse(const Document &parse) if (parse == Document::FullParse) { TestUniqueId(); + RefreshElementIdCache(); sceneDraw->clear(); sceneDraw->InitOrigins(); sceneDetail->clear(); diff --git a/src/libs/ifc/xml/vdomdocument.h b/src/libs/ifc/xml/vdomdocument.h index 9b681fe82..7d4dd20f0 100644 --- a/src/libs/ifc/xml/vdomdocument.h +++ b/src/libs/ifc/xml/vdomdocument.h @@ -142,8 +142,10 @@ protected: void TestUniqueId() const; void CollectId(const QDomElement &node, QVector &vector)const; -private slots: +protected slots: void RefreshElementIdCache(); + +private slots: void CacheRefreshed(); private: