summaryrefslogtreecommitdiff
path: root/sw/source/core/tox
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2017-02-15 11:06:00 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-02-15 11:33:56 +0000
commitdc8ebf205c3231ffc4d6737b53cee396c2ac0bfd (patch)
tree10fb4e9a4d6bb474f4dd0144354df612d33ba38c /sw/source/core/tox
parent54c0b9977a6421ecb7383fa48636075c6ca9967e (diff)
tdf#104315: Revert "tdf#44282 fix missing space...
... for numbered lists in TOC" This commit is causing lot of regressions in TOC. Besides, as the comment says, it's an ugly hack, so I'd prefer to revert it and find a better solution This reverts commit 250252d02bac88877845a4bc27e3f1837f1312ba. Change-Id: I9f57d1cb0f7237372030c12651ba92fbe5a60945 Reviewed-on: https://gerrit.libreoffice.org/34293 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source/core/tox')
-rw-r--r--sw/source/core/tox/ToxTextGenerator.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx
index 9d6a887ce81f..4eaaf8c3730c 100644
--- a/sw/source/core/tox/ToxTextGenerator.cxx
+++ b/sw/source/core/tox/ToxTextGenerator.cxx
@@ -215,10 +215,7 @@ ToxTextGenerator::GenerateText(SwDoc* pDoc, const std::vector<SwTOXSortTabBase*>
}
case TOKEN_TEXT:
- {
- if(rText.getLength() > 0) rText = rText.copy(0, rText.getLength() - 1); //Ugly hack to remove default spacing when user specifies <E#>
- rText += aToken.sText;
- }
+ rText += aToken.sText;
break;
case TOKEN_PAGE_NUMS: