Fix incorrect update of a layout piece.

develop
Roman Telezhynskyi 2022-05-03 17:02:45 +03:00
parent 7c1c6deeae
commit 689aea92b5
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,6 @@
# Valentina 0.7.52 (unreleased) # Valentina 0.7.52 (unreleased)
- Fix crash when default locale is ru. - Fix crash when default locale is ru.
- Puzzle app. Fix incorrect update of a layout piece.
# 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.

View File

@ -138,11 +138,11 @@ void VPPiece::Update(const VPPiecePtr &piece)
} }
SetName(piece->GetName()); SetName(piece->GetName());
SetCountourPoints(piece->GetContourPoints(), IsHideMainPath()); SetCountourPoints(piece->GetContourPoints(), piece->IsHideMainPath());
SetSeamAllowancePoints(GetSeamAllowancePoints(), piece->IsSeamAllowance(), piece->IsSeamAllowanceBuiltIn()); SetSeamAllowancePoints(piece->GetSeamAllowancePoints(), piece->IsSeamAllowance(), piece->IsSeamAllowanceBuiltIn());
SetInternalPaths(GetInternalPaths()); SetInternalPaths(piece->GetInternalPaths());
SetPassmarks(GetPassmarks()); SetPassmarks(piece->GetPassmarks());
SetPlaceLabels(GetPlaceLabels()); SetPlaceLabels(piece->GetPlaceLabels());
SetGrainlineEnabled(piece->IsGrainlineEnabled()); SetGrainlineEnabled(piece->IsGrainlineEnabled());
SetGrainlineAngle(piece->GrainlineAngle()); SetGrainlineAngle(piece->GrainlineAngle());