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 13:29:42 +0200
commit97cac82274698cc48b20d010983803e385264a85 (patch)
treee6cfcca64e46d1bb6b745c939f015027c79c2dbd
parent9ae93085c90bdd00bcbf796ab399154bb7ab9e39 (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> (cherry picked from commit 16b1d80070142e2ffecaba64b62dbe836daafb4f) Reviewed-on: https://gerrit.libreoffice.org/55599
-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 2b9cd10d1111..cb9093daeddf 100644
--- a/sw/source/core/layout/trvlfrm.cxx
+++ b/sw/source/core/layout/trvlfrm.cxx
@@ -2245,7 +2245,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 )
@@ -2340,7 +2340,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 ||