From 3bdf60705dd77a7d409a49a1cf12fd1d5c704e0b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 28 Jan 2018 12:58:11 +0200 Subject: [PATCH] Clang warning. --HG-- branch : develop --- src/libs/vtools/tools/vtoolseamallowance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;