From 5915d69eaf66cf89d5c5f24f436bc44afca24dfb Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 28 Aug 2019 18:21:17 +0200 Subject: [PATCH] Set buffer correctly when deleting column in math grid This is a followup to 837bcbb0. Fixes bug #11623. --- src/mathed/InsetMathGrid.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp index fe823d42e4..910450d378 100644 --- a/src/mathed/InsetMathGrid.cpp +++ b/src/mathed/InsetMathGrid.cpp @@ -896,6 +896,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);