]> git.lyx.org Git - features.git/commitdiff
gcc compile fix.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 4 Mar 2008 13:15:02 +0000 (13:15 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 4 Mar 2008 13:15:02 +0000 (13:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23441 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp

index 956ea8a0b03f7a14d1d7b01c4d9b37b5cc8b9f3e..3674838d159c72e2016caa3e8aabd1e803c2f2a8 100644 (file)
@@ -699,7 +699,12 @@ void InsetMathHull::swapRow(row_type row)
                return;
        if (row + 1 == nrows())
                --row;
-       swap(nonum_[row], nonum_[row + 1]);
+       // gcc doesn't like this:
+       //      swap(nonum_[row], nonum_[row + 1]);
+       // so we do it manually:
+       bool const b = nonum_[row];
+       nonum_[row] = nonum_[row + 1]
+       nonum_[row + 1] = b;
        swap(label_[row], label_[row + 1]);
        InsetMathGrid::swapRow(row);
 }