]> git.lyx.org Git - lyx.git/commitdiff
Set buffer correctly when deleting column in math grid
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 28 Aug 2019 16:21:17 +0000 (18:21 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 5 Sep 2019 11:49:52 +0000 (13:49 +0200)
This is a followup to ebe6612e.

Fixes bug #11623.

(cherry picked from commit 5915d69eaf66cf89d5c5f24f436bc44afca24dfb)

src/mathed/InsetMathGrid.cpp
status.23x

index f9625429c4932421748611dfc6a43ad6458e164b..2ae9d494db3bc3c6b9f7f78e1261adb4a3fbdc5a 100644 (file)
@@ -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);
index e82aaf4b34a9c626b983a57383470dbcfc03dfb2..319b18cd420c86e67f012cf2109cdda8500efa40 100644 (file)
@@ -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