Fix bug with caching removed items.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-05-08 11:32:27 +03:00
parent a7eeaebb4a
commit fc3f8df5b0
2 changed files with 4 additions and 1 deletions

View File

@ -4221,6 +4221,7 @@ void VPattern::PrepareForParse(const Document &parse)
if (parse == Document::FullParse)
{
TestUniqueId();
RefreshElementIdCache();
sceneDraw->clear();
sceneDraw->InitOrigins();
sceneDetail->clear();

View File

@ -142,8 +142,10 @@ protected:
void TestUniqueId() const;
void CollectId(const QDomElement &node, QVector<quint32> &vector)const;
private slots:
protected slots:
void RefreshElementIdCache();
private slots:
void CacheRefreshed();
private: