Puzzle app. Fix reading a piece name.

This commit is contained in:
Roman Telezhynskyi 2022-06-04 16:31:46 +03:00
parent 93f21830e1
commit 2e0f9c2a53
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
- Tape app. Add action Add separator to menu.
- Tape app. Fix crash after switching language.
- Fix Valentina app crash after canceling a tool.
- Puzzle app. Fix reading a piece name.
# Valentina 0.7.51 April 18, 2022
- Z value change for a layout piece.

View File

@ -466,7 +466,7 @@ void VPLayoutFileReader::ReadPiece(const VPPiecePtr &piece)
QString uuidStr = ReadAttributeString(attribs, ML::AttrID, QUuid::createUuid().toString());
piece->SetUUID(QUuid(uuidStr));
piece->SetName(ReadAttributeEmptyString(attribs, ML::AttrGradationLabel));
piece->SetGradationId(ReadAttributeEmptyString(attribs, ML::AttrGradationLabel));
piece->SetCopyNumber(static_cast<quint16>(ReadAttributeUInt(attribs, ML::AttrCopyNumber, QChar('1'))));
piece->SetHideMainPath(not ReadAttributeBool(attribs, ML::AttrShowSeamline, trueStr));
piece->SetXScale(ReadAttributeDouble(attribs, ML::AttrXScale, QChar('1')));