mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 05:12:40 +00:00
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:
parent
48d5e2a579
commit
036e61dd17
@ -766,7 +766,7 @@ void InsetMathGrid::delCol(col_type col)
|
|||||||
|
|
||||||
void InsetMathGrid::copyCol(col_type col)
|
void InsetMathGrid::copyCol(col_type col)
|
||||||
{
|
{
|
||||||
addCol(col);
|
addCol(col+1);
|
||||||
for (row_type row = 0; row < nrows(); ++row)
|
for (row_type row = 0; row < nrows(); ++row)
|
||||||
cells_[row * ncols() + col + 1] = cells_[row * ncols() + col];
|
cells_[row * ncols() + col + 1] = cells_[row * ncols() + col];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user