From f97c18c92377fa8923bd68bfc3049606845cd431 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 5 Feb 2022 11:30:32 +0200 Subject: [PATCH] Improve error in check point uniqueness check. --- src/libs/vtools/dialogs/dialogtoolbox.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/vtools/dialogs/dialogtoolbox.cpp b/src/libs/vtools/dialogs/dialogtoolbox.cpp index fafca7ab6..ce79390e2 100644 --- a/src/libs/vtools/dialogs/dialogtoolbox.cpp +++ b/src/libs/vtools/dialogs/dialogtoolbox.cpp @@ -92,6 +92,7 @@ auto DoublePoint(const VPieceNode &firstNode, const VPieceNode &secondNode, cons // The same point, but different modeling objects if (firstPoint->getIdObject() != NULL_ID && secondPoint->getIdObject() != NULL_ID && + firstPoint->getMode() == Draw::Modeling && secondPoint->getMode() == Draw::Modeling && firstPoint->getIdObject() == secondPoint->getIdObject()) { error = QObject::tr("Point '%1' repeats twice").arg(firstPoint->name());