mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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:
parent
4723fa0f2c
commit
e4f0872233
@ -699,7 +699,12 @@ void InsetMathHull::swapRow(row_type row)
|
|||||||
return;
|
return;
|
||||||
if (row + 1 == nrows())
|
if (row + 1 == nrows())
|
||||||
--row;
|
--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]);
|
swap(label_[row], label_[row + 1]);
|
||||||
InsetMathGrid::swapRow(row);
|
InsetMathGrid::swapRow(row);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user