diff --git a/src/libs/vtools/tools/vtoolseamallowance.cpp b/src/libs/vtools/tools/vtoolseamallowance.cpp index d03a7a3b1..f56be8bfb 100644 --- a/src/libs/vtools/tools/vtoolseamallowance.cpp +++ b/src/libs/vtools/tools/vtoolseamallowance.cpp @@ -2010,7 +2010,7 @@ QVector VToolSeamAllowance::DuplicatePins(const QVector &pins, { QSharedPointer pin = initData.data->GeometricObject(pins.at(i)); - VAbstractNode *tool = qobject_cast(VAbstractPattern::getTool(i)); + VAbstractNode *tool = qobject_cast(VAbstractPattern::getTool(pins.at(i))); SCASSERT(tool != nullptr) VToolPinInitData initNodeData;