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: 2.3.4~57 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=794026351772f3f5c8cc91048227d9ea6031d5fa;p=features.git Set buffer correctly when deleting column in math grid This is a followup to ebe6612e. Fixes bug #11623. (cherry picked from commit 5915d69eaf66cf89d5c5f24f436bc44afca24dfb) --- diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp index f9625429c4..2ae9d494db 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 e82aaf4b34..319b18cd42 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