From 182d07f761f770a252c36178d1912e957e7b00f4 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 19 May 2016 16:46:40 +0300 Subject: [PATCH] Fixed wrong incrementing references to objects. --HG-- branch : feature --- src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp b/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp index 9269ea5eb..963c34d36 100644 --- a/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp +++ b/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp @@ -298,11 +298,6 @@ VToolRotation *VToolRotation::Create(const quint32 _id, const quint32 &origin, Q { doc->IncrementReferens(data->GetGObject(source.at(i))->getIdTool()); } - - for (int i = 0; i < dest.size(); ++i) - { - doc->IncrementReferens(data->GetGObject(dest.at(i).id)->getIdTool()); - } return tool; } return nullptr;