summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-27 14:16:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-08-27 14:16:22 +0100
commitb3533883fd0397dbe9110145d62ef35944b64f69 (patch)
tree43fced812fa74fa239614c4e149db09aba955746 /sw/source/core/docnode
parenta3d74764d89e396dd7e8e7812ea64a062d6aed85 (diff)
fftester: empty tabbox protection
Change-Id: I56b0845205d6968355b3327721bf9ca0930903e1
Diffstat (limited to 'sw/source/core/docnode')
-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 9bff35ab1b50..0ba13326dd4d 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -1330,6 +1330,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)
{