commit 2699a58cd7c98e54cb5cfbaf3f6cdf2621651a64
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Thu Apr 25 17:13:15 2024 +0200
Set buffer when creating a MathData from parts of another one
This is triggered by selecting part of an equation under Xcb platform
(x11). Indeed, the current selection has to be sent to the X11 server
and BufferView::requestSelection() is called. Eventually
cap::grabSelection() is the function that creates this partial
MathData object.
Fixes ticket #12947.
(cherry picked from commit ed2f3cb9cfa1e871d48a92d41791a77bd218ab67)
---
src/mathed/MathData.cpp | 4 +++-
status.24x | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp
index 4c33934828..38f44a696e 100644
--- a/src/mathed/MathData.cpp
+++ b/src/mathed/MathData.cpp
@@ -49,7 +49,9 @@ namespace lyx {
MathData::MathData(Buffer * buf, const_iterator from, const_iterator to)
: base_type(from, to), buffer_(buf)
-{}
+{
+ setContentsBuffer();
+}
void MathData::setContentsBuffer()
diff --git a/status.24x b/status.24x
index 0328af480b..e7f677295e 100644
--- a/status.24x
+++ b/status.24x
@@ -90,6 +90,8 @@ What's new
- Fix initialization of an internal value.
+- Fix "Unassigned buffer_" error with math references (bug 12947).
+
* DOCUMENTATION AND LOCALIZATION
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs