Fix incorrect update of a layout piece.

This commit is contained in:
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)
- Fix crash when default locale is ru.
- Puzzle app. Fix incorrect update of a layout piece.
# Valentina 0.7.51 April 18, 2022
- Z value change for a layout piece.

View File

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