From d7b4cbf8604e21067e7f57b01ebb438e9d813a70 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 19 May 2016 15:01:49 +0300 Subject: [PATCH] Remove all children before update. --HG-- branch : feature --- src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp b/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp index 1a8a65a83..2e8dcb0df 100644 --- a/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp +++ b/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp @@ -764,6 +764,8 @@ void VToolRotation::SaveOptions(QDomElement &tag, QSharedPointer &obj) doc->SetAttribute(tag, AttrAngle, formulaAngle); doc->SetAttribute(tag, AttrSuffix, suffix); + doc->RemoveAllChildren(tag); + QDomElement tagObjects = doc->createElement(TagSource); for (int i = 0; i < source.size(); ++i) {