diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-05-09 21:13:50 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-05-10 08:30:53 +0200 |
commit | 8a26e4b26f0153fb8ca5da880ee4aa44748ee4df (patch) | |
tree | b4d97cfed4beca59d345267adb7a91ce1cec2f54 /sw/source/core/layout/fly.cxx | |
parent | 38371d01e0240825f6d8d419214f50bc193e3e6b (diff) |
sw btlr writing mode: implement layout for fly frames
The case when a fly frame was first constructed with one direction then
switched to btlr was already working.
The case when the direction is already set before the SwFlyFrame is
constructed was not, as SvxFrameDirection::Vertical_LR_BT was unhandled.
Change-Id: I97d15b3fc15ee116181718144dc9bccf8f31529f
Reviewed-on: https://gerrit.libreoffice.org/72077
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source/core/layout/fly.cxx')
-rw-r--r-- | sw/source/core/layout/fly.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx index d364ccf655b8..c701c9db56b9 100644 --- a/sw/source/core/layout/fly.cxx +++ b/sw/source/core/layout/fly.cxx @@ -129,6 +129,11 @@ SwFlyFrame::SwFlyFrame( SwFlyFrameFormat *pFormat, SwFrame* pSib, SwFrame *pAnch if ( SvxFrameDirection::Vertical_LR_TB == nDir ) mbVertLR = true; + else if (nDir == SvxFrameDirection::Vertical_LR_BT) + { + mbVertLR = true; + mbVertLRBT = true; + } else mbVertLR = false; } |