[Libreoffice-commits] core.git: sw/source
Michael Stahl
mstahl at redhat.com
Tue Aug 30 21:34:47 UTC 2016
sw/source/core/docnode/ndtbl.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 9299b4ed1fd6aec795e55cf9a5a67f6111b48f7c
Author: Michael Stahl <mstahl at redhat.com>
Date: Tue Aug 30 22:31:46 2016 +0200
Revert "fftester: empty tabbox protection"
This reverts commit da8583e9ae9dd7085e463b289533d2eeeccd761c.
This should also be covered by commit
dc83b3ae470914dbcb08fe1f0a4a4e1a1d3d8e19.
Change-Id: I173eb3e7f51288574e4807553200a9ca59a45fef
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 0abfc39..5310662 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -1330,8 +1330,7 @@ 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;
+ assert(!rBoxes.empty()); // ensured by convertToTable
size_t const nMissing = nMaxBoxes - rBoxes.size();
if (nMissing)
{
More information about the Libreoffice-commits
mailing list