diff options
author | Aron Budea <aron.budea@collabora.com> | 2021-10-04 19:19:13 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2021-10-06 01:21:43 +0200 |
commit | 816e01bf67067ebe32dbc730bef386fdc54b8a66 (patch) | |
tree | 077be245f1066577dc090583f9a7c746563ef5de /sw/source/core/text/pormulti.cxx | |
parent | Update git submodules (diff) | |
download | core-816e01bf67067ebe32dbc730bef386fdc54b8a66.tar.gz core-816e01bf67067ebe32dbc730bef386fdc54b8a66.zip |
Revert "tdf#144305 sw: fix rendering of ruby portions with...
...non-default ruby alignment"
Causing 301278b656e76b6f42af5cf8a6f5c6c02acfffeb will be
reverted in libreoffice-7-2.
This reverts commit 168065841250c190808261cf65afa00f9ecd52e7.
Change-Id: I9b23c9a1980c4ed06cc0c53086ad24f00e75053a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122944
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'sw/source/core/text/pormulti.cxx')
-rw-r--r-- | sw/source/core/text/pormulti.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/pormulti.cxx b/sw/source/core/text/pormulti.cxx index 98b8df7b643f..b94302bd8ed7 100644 --- a/sw/source/core/text/pormulti.cxx +++ b/sw/source/core/text/pormulti.cxx @@ -630,7 +630,7 @@ SwRubyPortion::SwRubyPortion( const SwMultiCreator& rCreate, const SwFont& rFnt, // If there is a tabulator in smaller line, no adjustment is possible. void SwRubyPortion::Adjust_( SwTextFormatInfo &rInf ) { - SwTwips nLineDiff = o3tl::narrowing<SwTwips>(GetRoot().Width()) - GetRoot().GetNext()->Width(); + SwTwips nLineDiff = GetRoot().Width() - GetRoot().GetNext()->Width(); TextFrameIndex const nOldIdx = rInf.GetIdx(); if( !nLineDiff ) return; |