commit bc8c85337c08a245b8892b8e331f19128ebdbe52
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Tue Mar 4 15:01:28 2025 +0100

    Make it clear that row is not 0
    
    When a row is PART_OF_MULTIROW, it cannot be 0, since it is after a
    BEGIN_OF_MULTIROW.
    
    Makes Coverity Scan happy.
---
 src/insets/InsetTabular.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 31015f725b..c741e72e60 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -1078,9 +1078,10 @@ void Tabular::updateIndexes()
                        if (!isPartOfMultiColumn(row, column)
                                && !isPartOfMultiRow(row, column))
                                ++numberofcells;
-                       if (isPartOfMultiRow(row, column))
+                       if (isPartOfMultiRow(row, column)) {
+                               LATTEST(row > 0);
                                cell_info[row][column].cellno = cell_info[row - 
1][column].cellno;
-                       else
+                       } else
                                cell_info[row][column].cellno = numberofcells - 
1;
                }
 
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to