summaryrefslogtreecommitdiff
path: root/sw/source/core/text/txttab.cxx
diff options
context:
space:
mode:
authorVasily Melenchuk <vasily.melenchuk@cib.de>2020-07-10 10:09:06 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-07-10 22:23:22 +0200
commitda91b2fd8e7c980973240340c3cdfcd473c1b233 (patch)
treec03eb507a67a68aff7a787f01aaf3041fe16a796 /sw/source/core/text/txttab.cxx
parent76f3995c0ddb06ca5d3e1b147bbd5cc9d74c8654 (diff)
tdf#134548: sw: revert of changes to tab at zero pos
It looks like solution for provided in 5ed96c for tdf#83309 is enough to resolve original bugdoc, so these changes for emission of tab at zero position are not required and produce just regressions. Corresponding unittest for tdf#83309 is adjusted: it is using now original bugdoc. Change-Id: I2e7683f071f78c720436b4c9ccb903133a985e7c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98476 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw/source/core/text/txttab.cxx')
-rw-r--r--sw/source/core/text/txttab.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/sw/source/core/text/txttab.cxx b/sw/source/core/text/txttab.cxx
index 65c4147630c9..a38cbe048d44 100644
--- a/sw/source/core/text/txttab.cxx
+++ b/sw/source/core/text/txttab.cxx
@@ -48,11 +48,6 @@ const SvxTabStop *SwLineInfo::GetTabStop( const SwTwips nSearchPos, const SwTwip
if( rTabStop.GetTabPos() > SwTwips(nRight) )
return i ? nullptr : &rTabStop;
- // If we are starting search from zero position,
- // then we should include tabstop at zero position
- if ((nSearchPos == 0) && (rTabStop.GetTabPos() == 0))
- return &rTabStop;
-
if( rTabStop.GetTabPos() > nSearchPos )
return &rTabStop;
}