From d6de99babbba42be38c0c5f51d5eb55183fe3318 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 26 Dec 2015 20:04:26 +0200 Subject: [PATCH] Fixed test build fail. --HG-- branch : develop --- src/app/valentina/xml/vpattern.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/valentina/xml/vpattern.cpp b/src/app/valentina/xml/vpattern.cpp index 9fbb0dc24..df67b2774 100644 --- a/src/app/valentina/xml/vpattern.cpp +++ b/src/app/valentina/xml/vpattern.cpp @@ -2138,7 +2138,7 @@ void VPattern::GarbageCollector() if (inUse == NodeUsage::InUse) { // It is dangerous to leave object with attribute 'inUse' // Each parse should confirm this status. - modNode.removeAttribute(VAbstractNode::AttrInUse); + SetParametrUsage(modNode, VAbstractNode::AttrInUse, NodeUsage::NotInUse); } else { // Parent was deleted. We do not need this object anymore @@ -2146,8 +2146,8 @@ void VPattern::GarbageCollector() } } else - { // Last parse did not confirm use of an object - modElement.removeChild(modNode); // was not used + { // Each parse should confirm his status. + SetParametrUsage(modNode, VAbstractNode::AttrInUse, NodeUsage::NotInUse); } modNode = nextSibling;