[Libreoffice-commits] core.git: sw/source
jan iversen
jani at documentfoundation.org
Mon Mar 21 19:35:04 UTC 2016
sw/source/core/tox/ToxTextGenerator.cxx | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
New commits:
commit 0149e87df9f09f325f8a04f495d561b8deb1e625
Author: jan iversen <jani at documentfoundation.org>
Date: Mon Mar 21 18:10:35 2016 +0000
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 at libreoffice.org>
Reviewed-by: jan iversen <jani at documentfoundation.org>
diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx
index 62602ac..cc181de 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: {
More information about the Libreoffice-commits
mailing list