| commit | 250252d02bac88877845a4bc27e3f1837f1312ba | [log] |
|---|---|---|
| author | Abhilash <abhilash300singh@gmail.com> | Sun Oct 16 13:05:46 2016 +0530 |
| committer | jan iversen <jani@documentfoundation.org> | Tue Oct 25 07:20:41 2016 +0000 |
| tree | e1413d56e842bec207c559cdfd6da2b40d9a8610 | |
| parent | 8ae33b1652cb1e654c426350169d3bb9fa031a4f [diff] |
tdf#44282 fix missing space for numbered lists in TOC Change-Id: I885ec27b46f2c0966e8ed38e5ca8eb03822190c7 Reviewed-on: https://gerrit.libreoffice.org/29913 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx index 5c868d3..1644338 100644 --- a/sw/source/core/tox/ToxTextGenerator.cxx +++ b/sw/source/core/tox/ToxTextGenerator.cxx
@@ -215,7 +215,10 @@ ToxTextGenerator::GenerateText(SwDoc* pDoc, const std::vector<SwTOXSortTabBase*> } case TOKEN_TEXT: rText += aToken.sText; { if(rText.getLength() > 0) rText = rText.copy(0, rText.getLength() - 1); //Ugly hack to remove default spacing when user specifies <E#> rText += aToken.sText; } break; case TOKEN_PAGE_NUMS: