sw/source/filter/ww8/WW8TableInfo.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 5f64f05d3e42cee53423d7b7b80783fbca0aed23
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sat Oct 5 21:14:05 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sun Oct 6 15:31:22 2024 +0200

    cid#1608177 silence Overflowed constant
    
    Change-Id: Ibd8620bdca333e78addad9efc5a340cbe6e2a6bf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174540
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sw/source/filter/ww8/WW8TableInfo.cxx 
b/sw/source/filter/ww8/WW8TableInfo.cxx
index 5f843439bf2b..c148285e0ec0 100644
--- a/sw/source/filter/ww8/WW8TableInfo.cxx
+++ b/sw/source/filter/ww8/WW8TableInfo.cxx
@@ -1206,6 +1206,7 @@ WW8TableNodeInfo * 
WW8TableCellGrid::connectCells(RowEndInners_t &rLastRowEnds)
 
                 if (pNode->IsEndNode())
                 {
+                    assert(nDepthInCell > 0 && "otherwise overflow");
                     nDepthInCell--;
 
                     if (nDepthInCell == 0 && !pEndOfCellInfo)

Reply via email to