mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 13:20:58 +00:00
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:
parent
395ffa63e7
commit
e76a0fb8d8
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user