commit b078ee0c01d315fcdd463191078931185011261d
Author: Juergen Spitzmueller <[email protected]>
Date: Mon Oct 13 13:31:38 2025 +0200
Amend 1b82fc4d8eb50dac7e
Two glitches noted by JMarc (thanks!)
---
src/BufferView.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index eec356939e..018470e356 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -1765,11 +1765,11 @@ void BufferView::dispatch(FuncRequest const & cmd,
DispatchResult & dr)
new_label = from_ascii("eq:equation");
int j = 1;
while (buffer().activeLabel(new_label))
{
- new_label = new_label + '-' +
convert<docstring>(j);
+ new_label =
from_ascii("eq:equation") + '-' + convert<docstring>(j);
++j;
}
// record undo for the math inset next
to dit
-
cur.buffer()->undo().recordUndoInset(CursorData(dit), dit.nextInset());
+ CursorData(dit).recordUndo();
// insert the label to the desired row
of the hull inset
dit.nextInset()->asInsetMath()->asHullInset()->label(row, new_label, true);
// needed to get the new label into the
buffer list
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs