branch: Fix bug #7106: iterator out of range while copying multi-row math.

see r37108.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37112 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2011-01-05 12:56:54 +00:00
parent 3d4865722e
commit 653e054c06
2 changed files with 4 additions and 2 deletions

View File

@ -65,9 +65,9 @@ static int extractInt(istream & is)
static void resetGrid(InsetMathGrid & grid)
{
while (grid.ncols() > 1)
grid.delCol(grid.ncols());
grid.delCol(grid.ncols() - 1);
while (grid.nrows() > 1)
grid.delRow(grid.nrows());
grid.delRow(grid.nrows() - 1);
grid.cell(0).erase(0, grid.cell(0).size());
grid.setDefaults();
}

View File

@ -88,6 +88,8 @@ What's new
- Fix crash when inserting quotes with a selection spanning multiple
paragraphs (bug 7200).
- Fix assertion when pasting a column in a math matrix (bug 7106).
- Remove traces of long removed index settings dialog. This fixes a crash
when issueing the non-functional lfuns "dialog-show index" and
"dialog-show-new-inset index" (bug 7180).