summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/wsfrm.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-05-23 21:44:20 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-05-24 09:06:28 +0200
commitad96f6f378a9fce11c2f7d9ad39a8203189444e3 (patch)
tree0983689bf4b4d57e1dddb48da2553e44d6a2cb0b /sw/source/core/layout/wsfrm.cxx
parent8a70f02c7d5b7dc4f947138052002499b24b3903 (diff)
sw btlr writing mode: fix btlr <-> tbrl switch for fly frames
The "BT" flag was not clear, so if the fly frame was first tbrl, then switched to btlr, then this was changed back, the result was not tbrl but tblr. Change-Id: I9a258e64e7a6e5849edd5a6a21a6182f642e44ab Reviewed-on: https://gerrit.libreoffice.org/72881 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source/core/layout/wsfrm.cxx')
-rw-r--r--sw/source/core/layout/wsfrm.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx
index c3e751f3b6f2..c5854a9d2bde 100644
--- a/sw/source/core/layout/wsfrm.cxx
+++ b/sw/source/core/layout/wsfrm.cxx
@@ -353,14 +353,21 @@ void SwFrame::CheckDir( SvxFrameDirection nDir, bool bVert, bool bOnlyBiDi, bool
{
mbVertical = false;
mbVertLR = false;
+ mbVertLRBT = false;
}
else
{
mbVertical = true;
if(SvxFrameDirection::Vertical_RL_TB == nDir)
+ {
mbVertLR = false;
+ mbVertLRBT = false;
+ }
else if(SvxFrameDirection::Vertical_LR_TB==nDir)
+ {
mbVertLR = true;
+ mbVertLRBT = false;
+ }
else if (nDir == SvxFrameDirection::Vertical_LR_BT)
{
mbVertLR = true;