Fix crash when selecting muticolumn in math

The cells that are part of the multicolumn are not in the cache, and
it is OK.

Fixes bug #10486.
This commit is contained in:
Jean-Marc Lasgouttes 2017-02-22 16:13:19 +01:00
parent 395ffa63e7
commit e76a0fb8d8
2 changed files with 5 additions and 0 deletions

View File

@ -311,6 +311,9 @@ void InsetMathNest::drawSelection(PainterInfo & pi, int x, int y) const
for (idx_type i = 0; i < nargs(); ++i) {
if (idxBetween(i, s1.idx(), s2.idx())) {
MathData const & c = cell(i);
// this can happen when cell is part of multicolumn
if (!bv.coordCache().getArrays().has(&c))
continue;
Geometry const & g = bv.coordCache().getArrays().geometry(&c);
int x1 = g.pos.x_;
int y1 = g.pos.y_ - g.dim.ascent();

View File

@ -172,6 +172,8 @@ What's new
- Fix crash when the document contains Unicode line-breaking characters.
- Fix assertion when selecting muticolumn in math (bug 10486).
- Allow using colors supported by xcolor inside mathed (bug 10417).
- Change description of "frame of button" color to "button frame" (bug