From c004f0fbad0c4a6ccf9a948a4855bba18c837ed0 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 20 Sep 2017 13:28:06 +0300 Subject: [PATCH] Cppcheck warning. --HG-- branch : develop --- .../toolpoint/toolsinglepoint/toolcut/vtoolcutsplinepath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutsplinepath.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutsplinepath.cpp index 37e4c744f..3b60e85c9 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutsplinepath.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutsplinepath.cpp @@ -137,7 +137,6 @@ VToolCutSplinePath* VToolCutSplinePath::Create(VToolCutSplinePathInitData &initD VSplinePath *splPath1 = nullptr; VSplinePath *splPath2 = nullptr; VPointF *p = VToolCutSplinePath::CutSplinePath(qApp->toPixel(result), splPath, initData.name, &splPath1, &splPath2); - p->SetShowLabel(initData.showLabel); SCASSERT(splPath1 != nullptr) SCASSERT(splPath2 != nullptr) @@ -145,6 +144,7 @@ VToolCutSplinePath* VToolCutSplinePath::Create(VToolCutSplinePathInitData &initD p->setMx(initData.mx); p->setMy(initData.my); + p->SetShowLabel(initData.showLabel); if (initData.typeCreation == Source::FromGui) {