summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhilash Singh <abhilash300singh@gmail.com>2016-07-22 11:48:45 +0530
committerjan iversen <jani@documentfoundation.org>2016-08-16 06:26:04 +0000
commitce95e39f8e952159844e9dc04a1df402bb103634 (patch)
treedc419e5a1cb976ceab9867bd0b20612c8f8cf199
parent989e8bc0d792f0dc5778746fac45de129a22d7ac (diff)
tdf#44282 fix missing space for numbered lists in TOC
Change-Id: I6baa6c775ac6142e4ba4197ce4d164628ef0ba1e Reviewed-on: https://gerrit.libreoffice.org/27423 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
-rw-r--r--sw/source/core/tox/ToxTextGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx
index cc181de41650..5c0514fec329 100644
--- a/sw/source/core/tox/ToxTextGenerator.cxx
+++ b/sw/source/core/tox/ToxTextGenerator.cxx
@@ -87,6 +87,10 @@ ToxTextGenerator::GetNumStringOfFirstNode( const SwTOXSortTabBase& rBase, bool b
sRet = pNd->GetNumString(bUsePrefix, nLevel);
}
+ if(sRet != "") {
+ sRet += " ";// Makes sure spacing is done only when there is outline numbering
+ }
+
return sRet;
}