commit a1690684ea402a23585afacfc32cc07acfc57d5a
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Tue Jul 15 22:39:59 2025 +0200
Add an assertion to please Coverity Scan
---
src/Paragraph.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 7a591afecd..9a01582a79 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -4675,6 +4675,8 @@ void Paragraph::fixBiblio(DocIterator & dit)
// (marked deleted)
// * Without change tracking, we release the inset
// from its previous InsetList position
+ LATTEST(getInset(bibitem_pos));
+ LATTEST(getInset(bibitem_pos)->asInsetCommand());
inset = new InsetBibitem(dit.buffer(),
getInset(bibitem_pos)->asInsetCommand()->params());
if (eraseChar(bibitem_pos, track_changes)) {
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs