Fix regression.

Regression after commit 1539abaf4d.
This commit is contained in:
Roman Telezhynskyi 2020-11-26 19:39:18 +02:00
parent a6437dbb3b
commit 27fe4b15fd

View File

@ -1744,7 +1744,9 @@ void VToolSeamAllowance::InitNodes(const VPiece &detail, VMainGraphicsScene *sce
{
for (int i = 0; i< detail.GetPath().CountNodes(); ++i)
{
InitNode(detail.GetPath().at(i), scene, this);
const VPieceNode &node = detail.GetPath().at(i);
InitNode(node, scene, this);
doc->IncrementReferens(VAbstractTool::data.GetGObject(node.GetId())->getIdTool());
}
}