Puzzle app. Fix reading a piece name.
This commit is contained in:
parent
93f21830e1
commit
2e0f9c2a53
|
@ -6,6 +6,7 @@
|
||||||
- Tape app. Add action Add separator to menu.
|
- Tape app. Add action Add separator to menu.
|
||||||
- Tape app. Fix crash after switching language.
|
- Tape app. Fix crash after switching language.
|
||||||
- Fix Valentina app crash after canceling a tool.
|
- Fix Valentina app crash after canceling a tool.
|
||||||
|
- Puzzle app. Fix reading a piece name.
|
||||||
|
|
||||||
# Valentina 0.7.51 April 18, 2022
|
# Valentina 0.7.51 April 18, 2022
|
||||||
- Z value change for a layout piece.
|
- Z value change for a layout piece.
|
||||||
|
|
|
@ -466,7 +466,7 @@ void VPLayoutFileReader::ReadPiece(const VPPiecePtr &piece)
|
||||||
QString uuidStr = ReadAttributeString(attribs, ML::AttrID, QUuid::createUuid().toString());
|
QString uuidStr = ReadAttributeString(attribs, ML::AttrID, QUuid::createUuid().toString());
|
||||||
piece->SetUUID(QUuid(uuidStr));
|
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->SetCopyNumber(static_cast<quint16>(ReadAttributeUInt(attribs, ML::AttrCopyNumber, QChar('1'))));
|
||||||
piece->SetHideMainPath(not ReadAttributeBool(attribs, ML::AttrShowSeamline, trueStr));
|
piece->SetHideMainPath(not ReadAttributeBool(attribs, ML::AttrShowSeamline, trueStr));
|
||||||
piece->SetXScale(ReadAttributeDouble(attribs, ML::AttrXScale, QChar('1')));
|
piece->SetXScale(ReadAttributeDouble(attribs, ML::AttrXScale, QChar('1')));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user