commit b93ad7171df84360049b2f1a493efa856814e228
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Wed Apr 9 14:55:39 2025 +0200

    Fix wrong index when searching for a second bibitem.
---
 src/Paragraph.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index e8271c8eed..1be292f16f 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -4655,7 +4655,7 @@ int Paragraph::fixBiblio(Buffer const & buffer)
 
        bool const hasbibitem0 = bibitem_pos == 0;
        if (hasbibitem0) {
-               bibitem_pos = getInsetPos(BIBITEM_CODE, 0, true);
+               bibitem_pos = getInsetPos(BIBITEM_CODE, 1, true);
                // There was an InsetBibitem at pos 0,
                // and no other one => OK
                if (bibitem_pos == -1)
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to