Fixed wrong incrementing references to objects.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-05-19 16:46:40 +03:00
parent e2a059287e
commit 182d07f761

View File

@ -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;