From 35c99ddf3c87e06b6672f8013bf8ef124f9fa7ad Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 5 Apr 2024 17:13:35 +0300 Subject: [PATCH] Update flipping status when import a piece. --- src/app/puzzle/layout/vppiece.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/puzzle/layout/vppiece.cpp b/src/app/puzzle/layout/vppiece.cpp index cc123d43a..94178b8e3 100644 --- a/src/app/puzzle/layout/vppiece.cpp +++ b/src/app/puzzle/layout/vppiece.cpp @@ -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(); + } } //---------------------------------------------------------------------------------------------------------------------