summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-11 08:47:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-11 10:03:20 +0200
commit16b1d80070142e2ffecaba64b62dbe836daafb4f (patch)
treec199daf966b3c6470609f5728f8e694ea0406dc7
parent3bd8759f5ed0393b2cc5560cab1b5d4052bd9728 (diff)
tdf#102907 selection indicator missing on vertical text
regression from commit 79800559268c636740fec69018b1f99f047c3f93 convert MT_ constants to scoped enum The original code used bit-wise operations and some clever constant values, which I did not convert correctly Change-Id: I2fcd9e2584638d4a690773ef3f178415153b8b19 Reviewed-on: https://gerrit.libreoffice.org/55596 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sw/source/core/layout/trvlfrm.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx
index fee388a696c1..22273e0173e6 100644
--- a/sw/source/core/layout/trvlfrm.cxx
+++ b/sw/source/core/layout/trvlfrm.cxx
@@ -2271,7 +2271,7 @@ void SwRootFrame::CalcFrameRects(SwShellCursor &rCursor)
Sub( aRegion, aTmp );
// The next statement means neither ruby nor rotate(90):
- if( MultiPortionType::RUBY != pEnd2Pos->nMultiType )
+ if( MultiPortionType::RUBY != pEnd2Pos->nMultiType && MultiPortionType::ROT_90 != pEnd2Pos->nMultiType )
{
SwTwips nTmp = fnRectX.GetTop(pEnd2Pos->aLine);
if( fnRectX.GetTop(aEndRect) != nTmp )
@@ -2366,7 +2366,9 @@ void SwRootFrame::CalcFrameRects(SwShellCursor &rCursor)
if( pStartFrame == pEndFrame )
{
bool bSameRotatedOrBidi = pSt2Pos && pEnd2Pos &&
- ( MultiPortionType::BIDI == pSt2Pos->nMultiType ) &&
+ ( MultiPortionType::BIDI == pSt2Pos->nMultiType ||
+ MultiPortionType::ROT_270 == pSt2Pos->nMultiType ||
+ MultiPortionType::ROT_90 == pSt2Pos->nMultiType ) &&
pSt2Pos->aPortion == pEnd2Pos->aPortion;
//case 1: (Same frame and same row)
if( bSameRotatedOrBidi ||