From 27fe4b15fd61755c51b46a158f38d1c9836ab3cc Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 26 Nov 2020 19:39:18 +0200 Subject: [PATCH] Fix regression. Regression after commit 1539abaf4d905653cb746cd9919640990c3196ab. --- src/libs/vtools/tools/vtoolseamallowance.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libs/vtools/tools/vtoolseamallowance.cpp b/src/libs/vtools/tools/vtoolseamallowance.cpp index 68d12044c..023686d53 100644 --- a/src/libs/vtools/tools/vtoolseamallowance.cpp +++ b/src/libs/vtools/tools/vtoolseamallowance.cpp @@ -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()); } }