sw/qa/core/data/rtf/pass/tabbox-1.rtf |binary
 sw/source/core/docnode/ndtbl.cxx      |    2 ++
 2 files changed, 2 insertions(+)

New commits:
commit b3533883fd0397dbe9110145d62ef35944b64f69
Author: Caolán McNamara <caol...@redhat.com>
Date:   Sat Aug 27 14:16:22 2016 +0100

    fftester: empty tabbox protection
    
    Change-Id: I56b0845205d6968355b3327721bf9ca0930903e1

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 0000000..19d3851
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 9bff35a..0ba1332 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)
         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to