From b66f516a745ba8cf18a882b5f0cdd0ae5ae7be61 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 2 Jan 2019 21:36:51 +0200 Subject: [PATCH] Fix missing arrow type when follow a grainline. --HG-- branch : develop --- src/libs/vlayout/vposition.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vlayout/vposition.cpp b/src/libs/vlayout/vposition.cpp index 0b0edc5cd..c1c9394c5 100644 --- a/src/libs/vlayout/vposition.cpp +++ b/src/libs/vlayout/vposition.cpp @@ -620,12 +620,12 @@ void VPosition::FollowGrainline() const qreal angle = detailGrainline.angleTo(FabricGrainline()); - if (detail.GrainlineArrowType() == ArrowType::atFront) + if (detail.GrainlineArrowType() == ArrowType::atBoth || detail.GrainlineArrowType() == ArrowType::atFront) { RotateOnAngle(angle); } - if (detail.GrainlineArrowType() == ArrowType::atRear) + if (detail.GrainlineArrowType() == ArrowType::atBoth || detail.GrainlineArrowType() == ArrowType::atRear) { RotateOnAngle(angle+180); }