gcc compile fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23441 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-03-04 13:15:02 +00:00
parent 4723fa0f2c
commit e4f0872233

View 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);
}