sw/source/core/text/itrpaint.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit e24a3a3c339d7a175ebfeef31a280becda9d5950 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Wed Jun 28 18:54:43 2023 +0300 Commit: Justin Luth <jl...@mail.com> CommitDate: Wed Jun 28 23:02:48 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> diff --git a/sw/source/core/text/itrpaint.cxx b/sw/source/core/text/itrpaint.cxx index 9c6dc347a47c..a189e5abf25b 100644 --- a/sw/source/core/text/itrpaint.cxx +++ b/sw/source/core/text/itrpaint.cxx @@ -167,8 +167,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 )