Fix parsing seam line.

Puzzle ignores Hide main path option.
This commit is contained in:
Roman Telezhynskyi 2023-10-12 17:50:05 +03:00
parent bcd53e0036
commit bb0a573e88

View File

@ -602,7 +602,7 @@ auto VPLayoutFileReader::ReadLayoutPoints() -> QVector<VLayoutPoint>
void VPLayoutFileReader::ReadSeamLine(const VPPiecePtr &piece) void VPLayoutFileReader::ReadSeamLine(const VPPiecePtr &piece)
{ {
AssertRootTag(ML::TagSeamLine); AssertRootTag(ML::TagSeamLine);
piece->SetContourPoints(ReadLayoutPoints()); piece->SetContourPoints(ReadLayoutPoints(), piece->IsHideMainPath());
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------