]> git.lyx.org Git - features.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>
Wed, 28 Aug 2019 16:21:17 +0000 (18:21 +0200)
This is a followup to 837bcbb0.

Fixes bug #11623.

src/mathed/InsetMathGrid.cpp

index fe823d42e46e2c6bab9431d2739d5e3f224002a8..910450d378643290046df936192080fb7ca9d270 100644 (file)
@@ -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);