Set buffer correctly when deleting column in math grid

This is a followup to ebe6612e.

Fixes bug #11623.

(cherry picked from commit 5915d69eaf)
This commit is contained in:
Jean-Marc Lasgouttes 2019-08-28 18:21:17 +02:00
parent 421509b260
commit 7940263517
2 changed files with 4 additions and 0 deletions

View 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);

View 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