sw/source/core/text/itrpaint.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 97436f1487f647ed16228f7f7c3a5533981dc018
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Wed Jun 28 18:54:43 2023 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Thu Jun 29 10:49:03 2023 +0200

    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 <jl...@mail.com>
    (cherry picked from commit e24a3a3c339d7a175ebfeef31a280becda9d5950)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153703
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

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 )

Reply via email to