From: Jean-Marc Lasgouttes Date: Wed, 28 Aug 2019 16:21:17 +0000 (+0200) Subject: Set buffer correctly when deleting column in math grid X-Git-Tag: lyx-2.4.0dev-acb2ca7b~1562 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5915d69eaf66cf89d5c5f24f436bc44afca24dfb;p=features.git Set buffer correctly when deleting column in math grid This is a followup to 837bcbb0. Fixes bug #11623. --- 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);