diff options
author | jan iversen <jani@documentfoundation.org> | 2016-03-21 18:10:35 +0000 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-03-21 19:34:35 +0000 |
commit | 0149e87df9f09f325f8a04f495d561b8deb1e625 (patch) | |
tree | 93328070294d36b2bb97c0650b271acb22fd4abc | |
parent | 439f2b8d1d6b594493a4a78249c35e7387b318d4 (diff) |
Revert "tdf#44282 fix missing space for numbered lists in TOC"
This reverts commit 9ebe054ddb2d938b24ca4688be9bcbc62745f67f.
Causing problem with outlining > 2.
Change-Id: Ic2e2413d8b0b437011b5930472a49b6a6a7e5d0c
Reviewed-on: https://gerrit.libreoffice.org/23410
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
-rw-r--r-- | sw/source/core/tox/ToxTextGenerator.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx index 62602acabbe6..cc181de41650 100644 --- a/sw/source/core/tox/ToxTextGenerator.cxx +++ b/sw/source/core/tox/ToxTextGenerator.cxx @@ -181,14 +181,9 @@ ToxTextGenerator::GenerateText(SwDoc* pDoc, const std::vector<SwTOXSortTabBase*> sal_Int32 nStartCharStyle = rText.getLength(); switch( aToken.eTokenType ) { - case TOKEN_ENTRY_NO: { - // for TOC numbering - OUString numString = GetNumStringOfFirstNode( rBase, aToken.nChapterFormat == CF_NUMBER, static_cast<sal_uInt8>(aToken.nOutlineLevel - 1) ) ; - if (numString.getLength() > 0) - { - rText += numString + " " ; - } - } + case TOKEN_ENTRY_NO: + // for TOC numbering + rText += GetNumStringOfFirstNode( rBase, aToken.nChapterFormat == CF_NUMBER, static_cast<sal_uInt8>(aToken.nOutlineLevel - 1) ) ; break; case TOKEN_ENTRY_TEXT: { |