commit 794026351772f3f5c8cc91048227d9ea6031d5fa
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Aug 28 18:21:17 2019 +0200
Set buffer correctly when deleting column in math grid
This is a followup to ebe6612e.
Fixes bug #11623.
(cherry picked from commit 5915d69eaf66cf89d5c5f24f436bc44afca24dfb)
---
src/mathed/InsetMathGrid.cpp | 2 ++
status.23x | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp
index f962542..2ae9d49 100644
--- a/src/mathed/InsetMathGrid.cpp
+++ b/src/mathed/InsetMathGrid.cpp
@@ -891,6 +891,8 @@ void InsetMathGrid::delCol(col_type col)
tmpcellinfo.push_back(cellinfo_[i]);
}
swap(cells_, tmpcells);
+ // copying cells loses the buffer reference
+ setBuffer(*buffer_);
swap(cellinfo_, tmpcellinfo);
colinfo_.erase(colinfo_.begin() + col);
diff --git a/status.23x b/status.23x
index e82aaf4..319b18c 100644
--- a/status.23x
+++ b/status.23x
@@ -133,6 +133,8 @@ What's new
- Enable change tracking if paragraph break change (bug 11629).
+- Fix crash when deleting column in math grid (bug 11623).
+
* INTERNALS