summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-27 14:16:22 +0100
committerAndras Timar <andras.timar@collabora.com>2016-09-01 12:13:36 +0200
commitc11057005402bf4ce1d9a26abbc63fefeb7225bc (patch)
tree5afded3332315d22be8c897567fe94d7ae32e39f /sw/source
parent40819ed68d6cd9381fbcf65d80162ba0a3ac13b6 (diff)
fftester: empty tabbox protection
Change-Id: I56b0845205d6968355b3327721bf9ca0930903e1 (cherry picked from commit b3533883fd0397dbe9110145d62ef35944b64f69) Reviewed-on: https://gerrit.libreoffice.org/28425 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> (cherry picked from commit e3cc5adb5999c51aa732befdfbe328c8e885fb22)
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/docnode/ndtbl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 0db58e9a2e49..b60c6fa07ae3 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -1329,6 +1329,8 @@ lcl_SetTableBoxWidths2(SwTable & rTable, size_t const nMaxBoxes,
for (size_t nTmpLine = 0; nTmpLine < rLines.size(); ++nTmpLine)
{
SwTableBoxes & rBoxes = rLines[nTmpLine]->GetTabBoxes();
+ if (rBoxes.empty())
+ continue;
size_t const nMissing = nMaxBoxes - rBoxes.size();
if (nMissing)
{