summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2020-05-12 10:40:37 +0530
committerDennis Francis <dennis.francis@collabora.com>2020-05-25 00:39:53 +0530
commit3304f17fee8ca8b24acc7efae0f2241193bf9630 (patch)
treecc27fe8effc472de031a7e9ba918f0893770eb8a
parente6c0b7e723d165cd61321055f4d10c6374cffcba (diff)
lokit: table-outline: skip empty collections...
while encoding the information as string. Change-Id: I890efc4a9b60125c68c663a69569864308fdbdcf
-rw-r--r--sc/source/core/data/olinetab.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/olinetab.cxx b/sc/source/core/data/olinetab.cxx
index 19553c52cdbc..d61b16564bd3 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* pLevelSep = " ";
for (const auto& rCollection : aCollections)
+ {
+ if (rCollection.empty())
+ continue;
aOutput += rCollection.dumpAsString() + pLevelSep;
+ }
return aOutput;
}