commit 5a1c8c661bbbfbe810968d9f5c3107658ab37f41
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Tue Apr 1 16:20:55 2025 +0200

    Add assertions to help Coverity Scan
    
    There is always at least one cell per row.
---
 src/insets/InsetTabular.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 99060483fe..a95abf11ae 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -1160,6 +1160,7 @@ idx_type Tabular::numberOfCellsInRow(row_type const row) 
const
        for (col_type c = 0; c < ncols(); ++c)
                if (cell_info[row][c].multicolumn != 
Tabular::CELL_PART_OF_MULTICOLUMN)
                        ++result;
+       LATTEST(result > 0);
        return result;
 }
 
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to