Update flipping status when import a piece.

This commit is contained in:
Roman Telezhynskyi 2024-04-05 17:13:35 +03:00
parent 74eb3765bc
commit 35c99ddf3c

View File

@ -174,6 +174,13 @@ void VPPiece::Update(const VPPiecePtr &piece)
SetFoldLineSVGFontFamily(piece->GetFoldLineSVGFontFamily());
SetFoldLineHeight(piece->GetFoldLineHeight());
SetFoldLineWidth(piece->GetFoldLineWidth());
SetForceFlipping(piece->IsForceFlipping());
SetForbidFlipping(piece->IsForbidFlipping());
if ((IsForceFlipping() && !IsVerticallyFlipped()) || (IsForbidFlipping() && IsVerticallyFlipped()))
{
FlipVertically();
}
}
//---------------------------------------------------------------------------------------------------------------------