Collect garbage only after successfully parse. This way wrongly accused items

have one more time to restore a reference.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-03-04 14:55:40 +02:00
parent add6d9facf
commit d291051dfb
2 changed files with 0 additions and 8 deletions

View File

@ -146,13 +146,6 @@ void VPattern::CreateEmptyFile()
this->firstChild());
}
//---------------------------------------------------------------------------------------------------------------------
void VPattern::setXMLContent(const QString &fileName)
{
VAbstractPattern::setXMLContent(fileName);
GarbageCollector();
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief Parse parse file.

View File

@ -67,7 +67,6 @@ public:
QVector<quint32> GetActivePPPieces() const;
virtual void setXMLContent(const QString &fileName) override;
virtual bool SaveDocument(const QString &fileName, QString &error) override;
QRectF ActiveDrawBoundingRect() const;