Fixed wrong incrementing references to objects.
--HG-- branch : feature
This commit is contained in:
parent
e2a059287e
commit
182d07f761
|
@ -298,11 +298,6 @@ VToolRotation *VToolRotation::Create(const quint32 _id, const quint32 &origin, Q
|
||||||
{
|
{
|
||||||
doc->IncrementReferens(data->GetGObject(source.at(i))->getIdTool());
|
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 tool;
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user