From: Abdelrazak Younes Date: Tue, 4 Mar 2008 13:15:02 +0000 (+0000) Subject: gcc compile fix. X-Git-Tag: 1.6.10~5900 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e4f0872233042866f7b099a07b18496b79b35003;p=features.git gcc compile fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23441 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 956ea8a0b0..3674838d15 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -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); }