Improve error in check point uniqueness check.

This commit is contained in:
Roman Telezhynskyi 2022-02-05 11:30:32 +02:00
parent 2d91455ed5
commit f97c18c923

View File

@ -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());