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)
MathData::MathData(Buffer * buf, const_iterator from, const_iterator to)
: base_type(from, to), buffer_(buf)
-{}
+{
+ setContentsBuffer();
+}
void MathData::setContentsBuffer()
- Fix initialization of an internal value.
+- Fix "Unassigned buffer_" error with math references (bug 12947).
+
* DOCUMENTATION AND LOCALIZATION