commit 4f20ac64d70282f1792abfeafa48a9fea8f89af1
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Wed Apr 9 14:29:14 2025 +0200

    Do not to release inset before erasing it
    
    It will be done by eraseChar if needed. But when change tracking leads
    to just marking the position as deleted, the inset will be missing and
    cause issues.
---
 src/Paragraph.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 1f1940e1da..e8271c8eed 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -4649,7 +4649,6 @@ int Paragraph::fixBiblio(Buffer const & buffer)
                        // No InsetBibitem => OK
                        return 0;
                // There is an InsetBibitem: remove it!
-               d->insetlist_.release(bibitem_pos);
                eraseChar(bibitem_pos, track_changes);
                return (bibitem_pos == 0) ? -1 : -bibitem_pos;
        }
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to