Fix main path validation. False positive double curve.

This commit is contained in:
Roman Telezhynskyi 2022-07-12 16:18:42 +03:00
parent b4462395e1
commit f020a806d4
2 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -146,7 +146,8 @@ 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 &&
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());