commit bb90e77ec97d31d006de9fbfb4d5c42d71c83157
Author: Juergen Spitzmueller <[email protected]>
Date: Tue Oct 28 06:07:14 2025 +0100
always set InsetSpecialChar's buffer after insertion
---
src/Text.cpp | 1 +
src/insets/InsetInfo.cpp | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/Text.cpp b/src/Text.cpp
index 18b6ad2134..d712252f0c 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -935,6 +935,7 @@ void Text::insertStringAsLines(Cursor & cur, docstring
const & str,
font, bparams.track_changes
? Change(Change::INSERTED)
: Change(Change::UNCHANGED)))) {
+ par.getInset(pos)->setBuffer(*cur.buffer());
++pos;
space_inserted = false;
} else if (!isPrintable(ch)) {
diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp
index 8fd4ed1999..6dfba1ac77 100644
--- a/src/insets/InsetInfo.cpp
+++ b/src/insets/InsetInfo.cpp
@@ -1080,9 +1080,11 @@ void InsetInfo::build()
//fu.fontInfo().setUnderbar(FONT_ON);
for (docstring const & name : names) {
// do not insert > for the top level menu item
- if (&name != &names.front())
+ if (&name != &names.front()) {
par.insertInset(par.size(), new
InsetSpecialChar("menuseparator"),
f, Change(Change::UNCHANGED));
+ par.getInset(par.size() -
1)->setBuffer(buffer());
+ }
//FIXME: add proper underlines here. This
// involves rewriting searchMenu used above to
// return a vector of menus. If we do not do
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs