diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-06-28 18:54:43 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-06-29 10:49:03 +0200 |
commit | 97436f1487f647ed16228f7f7c3a5533981dc018 (patch) | |
tree | d4265c9bf143bbebf690cf8090e46f4446898bae /sw | |
parent | 021712f9500910c3433360ec54d35f3564f540ce (diff) |
tdf#156078: Use TabOverSpacing compat option instead of TabOverflow
As Justin Luth noted, "TabOverflow is basically always true", and
using it basically equal to making the test always true. On the
other hand, TabOverSpacing is accurate for the task.
Change-Id: I608b200dac0169cbafc935a03452aac9ba0527a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153722
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
(cherry picked from commit e24a3a3c339d7a175ebfeef31a280becda9d5950)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153703
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/itrpaint.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/text/itrpaint.cxx b/sw/source/core/text/itrpaint.cxx index 3709e4a56869..7f61a27a412b 100644 --- a/sw/source/core/text/itrpaint.cxx +++ b/sw/source/core/text/itrpaint.cxx @@ -149,8 +149,8 @@ void SwTextPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip, //compatibility settings: allow tabstop text to exceed right margin const auto& iDSA = GetInfo().GetTextFrame()->GetDoc().getIDocumentSettingAccess(); const bool bTabOverMargin = iDSA.get(DocumentSettingId::TAB_OVER_MARGIN); - const bool bTabOverflow = iDSA.get(DocumentSettingId::TAB_OVERFLOW); - if (bTabOverMargin || bTabOverflow) + const bool bTabOverSpacing = iDSA.get(DocumentSettingId::TAB_OVER_SPACING); + if (bTabOverMargin || bTabOverSpacing) { SwLinePortion* pPorIter = pPor; while( pPorIter ) |