From b3533883fd0397dbe9110145d62ef35944b64f69 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 27 Aug 2016 14:16:22 +0100 Subject: fftester: empty tabbox protection Change-Id: I56b0845205d6968355b3327721bf9ca0930903e1 --- sw/qa/core/data/rtf/pass/tabbox-1.rtf | Bin 0 -> 893 bytes sw/source/core/docnode/ndtbl.cxx | 2 ++ 2 files changed, 2 insertions(+) create mode 100644 sw/qa/core/data/rtf/pass/tabbox-1.rtf (limited to 'sw') diff --git a/sw/qa/core/data/rtf/pass/tabbox-1.rtf b/sw/qa/core/data/rtf/pass/tabbox-1.rtf new file mode 100644 index 000000000000..19d3851f574e Binary files /dev/null and b/sw/qa/core/data/rtf/pass/tabbox-1.rtf differ 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) { -- cgit