From e4f0872233042866f7b099a07b18496b79b35003 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 4 Mar 2008 13:15:02 +0000 Subject: [PATCH] gcc compile fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23441 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathHull.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); } -- 2.39.5