diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2020-05-12 10:40:37 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2020-07-04 12:01:56 +0200 |
commit | 568d0e13adb71c72eb07255a507b0ce922f43917 (patch) | |
tree | 16b8935db47df5aaf601bba9cc0abded40f30bfe /sc | |
parent | d24d7e21860ce390496c7aa4d61b347e0158ac51 (diff) |
lokit: table-outline: skip empty collections...
while encoding the information as string.
Change-Id: I890efc4a9b60125c68c663a69569864308fdbdcf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96902
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
(cherry picked from commit 2a7d29c51dca6d23a677f1e12ae68b6d7fc71ad5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96965
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/olinetab.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/olinetab.cxx b/sc/source/core/data/olinetab.cxx index 84b9c59af3be..ddcc4c4ed6ad 100644 --- a/sc/source/core/data/olinetab.cxx +++ b/sc/source/core/data/olinetab.cxx @@ -747,7 +747,11 @@ OString ScOutlineArray::dumpAsString() const OString aOutput; const char* const pLevelSep = " "; for (const auto& rCollection : aCollections) + { + if (rCollection.empty()) + continue; aOutput += rCollection.dumpAsString() + pLevelSep; + } return aOutput; } |