From f020a806d4f91691dbc992b98d49e8b229d8e5d9 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 12 Jul 2022 16:18:42 +0300 Subject: [PATCH] Fix main path validation. False positive double curve. --- ChangeLog.txt | 1 + src/libs/vtools/dialogs/dialogtoolbox.cpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index f04a79ba6..9139249be 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -9,6 +9,7 @@ - Puzzle app. Fix reading a piece name. - Fix warning while segmenting flipped arc. - Tape app. "Export from existing ..." now supports multisize measurements. +- Fix main path validation. False positive double curve. # Valentina 0.7.51 April 18, 2022 - Z value change for a layout piece. diff --git a/src/libs/vtools/dialogs/dialogtoolbox.cpp b/src/libs/vtools/dialogs/dialogtoolbox.cpp index f426c5840..99b6ff136 100644 --- a/src/libs/vtools/dialogs/dialogtoolbox.cpp +++ b/src/libs/vtools/dialogs/dialogtoolbox.cpp @@ -146,8 +146,9 @@ auto DoubleCurve(const VPieceNode &firstNode, const VPieceNode &secondNode, cons } // The same curve, but different modeling objects - if (curve1->getIdObject() != NULL_ID && curve2->getIdObject() != NULL_ID && - curve1->getIdObject() == curve2->getIdObject()) + if (curve1->getMode() == Draw::Modeling && curve2->getMode() == Draw::Modeling && + curve1->getIdObject() != NULL_ID && curve2->getIdObject() != NULL_ID && + curve1->getIdObject() == curve2->getIdObject()) { error = QObject::tr("Leave only one copy of curve '%1'").arg(curve1->name()); return true;