]> git.lyx.org Git - features.git/commitdiff
Fix bug 5731. http://bugzilla.lyx.org/show_bug.cgi?id=5731\nInsert column after the...
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 2 Feb 2009 21:44:37 +0000 (21:44 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 2 Feb 2009 21:44:37 +0000 (21:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28326 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathGrid.cpp

index 622633642ed9962fcb4c48073090d141772f0360..b77a18b01688a9f2eec8ba6a3470c1b6ffb6ff49 100644 (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];
 }