Fix bug 5731. http://bugzilla.lyx.org/show_bug.cgi?id=5731\nInsert column after the current one, then copy the current one to the new one

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28326 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-02-02 21:44:37 +00:00
parent 48d5e2a579
commit 036e61dd17

View File

@ -766,7 +766,7 @@ void InsetMathGrid::delCol(col_type col)
void InsetMathGrid::copyCol(col_type col)
{
addCol(col);
addCol(col+1);
for (row_type row = 0; row < nrows(); ++row)
cells_[row * ncols() + col + 1] = cells_[row * ncols() + col];
}