commit c33d2046f4bfe5872e3fe800abe695bf0abcfca7
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.
(cherry picked from commit 4f20ac64d70282f1792abfeafa48a9fea8f89af1)
---
src/Paragraph.cpp | 1 -
status.24x | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 93741805b5..506312ac37 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -4623,7 +4623,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;
}
diff --git a/status.24x b/status.24x
index 3c7c837418..f534bf660f 100644
--- a/status.24x
+++ b/status.24x
@@ -111,6 +111,8 @@ What's new
- Fix display of some icons in dialogs in dark mode.
+- Fix minor issues with automatic deletion of bibitem insets.
+
* INTERNALS
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs