diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-27 14:16:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-27 14:16:22 +0100 |
commit | b3533883fd0397dbe9110145d62ef35944b64f69 (patch) | |
tree | 43fced812fa74fa239614c4e149db09aba955746 /sw | |
parent | a3d74764d89e396dd7e8e7812ea64a062d6aed85 (diff) |
fftester: empty tabbox protection
Change-Id: I56b0845205d6968355b3327721bf9ca0930903e1
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/core/data/rtf/pass/tabbox-1.rtf | bin | 0 -> 893 bytes | |||
-rw-r--r-- | sw/source/core/docnode/ndtbl.cxx | 2 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sw/qa/core/data/rtf/pass/tabbox-1.rtf b/sw/qa/core/data/rtf/pass/tabbox-1.rtf Binary files differnew file mode 100644 index 000000000000..19d3851f574e --- /dev/null +++ b/sw/qa/core/data/rtf/pass/tabbox-1.rtf 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) { |