commit ebcfb077d4ca885ddeb6ac302d4e866c08c3375f
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Thu Apr 3 10:06:44 2025 +0200
Fixup 90717ff3: assertio was added to the wrong function
Let us see whether Coverity Scan can use this one.
---
src/insets/InsetTabular.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index a95abf11ae..744057e047 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -7139,9 +7139,6 @@ void InsetTabular::movePrevCell(Cursor & cur,
EntryDirection entry_from)
void InsetTabular::tabularFeatures(Cursor & cur, string const & argument)
{
- // Tell Coverity Scan that a tabular is never empty
- LATTEST(tabular.nrows() > 0 && tabular.ncols() > 0);
-
cur.recordUndoInset(this);
istringstream is(argument);
@@ -7220,6 +7217,9 @@ bool InsetTabular::oneCellHasRotationState(bool rotated,
void InsetTabular::tabularFeatures(Cursor & cur,
Tabular::Feature feature, string const & value)
{
+ // Tell Coverity Scan that a tabular is never empty
+ LATTEST(tabular.nrows() > 0 && tabular.ncols() > 0);
+
col_type sel_col_start;
col_type sel_col_end;
row_type sel_row_start;
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs