summaryrefslogtreecommitdiff
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 13:26:05 +0000
commit05116fb49efa563610f6486d0c3f6216624dcd13 (patch)
treeb71c5bc1873b5a867e362f83380a50b422ee05ed
parenteffeccd268305a2d3537cc89e4e35f682505afcb (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> (cherry picked from commit dc8ebf205c3231ffc4d6737b53cee396c2ac0bfd) Reviewed-on: https://gerrit.libreoffice.org/34295
-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: