mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
Try to please windows compiler
This commit is contained in:
parent
df33cc3334
commit
a8b0e64094
@ -6572,12 +6572,12 @@ void InsetTabular::getSelection(Cursor & cur,
|
|||||||
cs = tabular.cellColumn(beg.idx());
|
cs = tabular.cellColumn(beg.idx());
|
||||||
ce = tabular.cellColumn(end.idx());
|
ce = tabular.cellColumn(end.idx());
|
||||||
if (cs > ce)
|
if (cs > ce)
|
||||||
swap(cs, ce);
|
std::swap(cs, ce);
|
||||||
|
|
||||||
rs = tabular.cellRow(beg.idx());
|
rs = tabular.cellRow(beg.idx());
|
||||||
re = tabular.cellRow(end.idx());
|
re = tabular.cellRow(end.idx());
|
||||||
if (rs > re)
|
if (rs > re)
|
||||||
swap(rs, re);
|
std::swap(rs, re);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1295,8 +1295,8 @@ void InsetMathHull::addRow(row_type row)
|
|||||||
if (type_ == hullMultline) {
|
if (type_ == hullMultline) {
|
||||||
if (row + 1 == nrows()) {
|
if (row + 1 == nrows()) {
|
||||||
numbered_[row] = NONUMBER;
|
numbered_[row] = NONUMBER;
|
||||||
swap(label, label_[row]);
|
std::swap(label, label_[row]);
|
||||||
swap(number, numbers_[row]);
|
std::swap(number, numbers_[row]);
|
||||||
} else
|
} else
|
||||||
numbered = false;
|
numbered = false;
|
||||||
}
|
}
|
||||||
@ -1314,9 +1314,9 @@ void InsetMathHull::swapRow(row_type row)
|
|||||||
return;
|
return;
|
||||||
if (row + 1 == nrows())
|
if (row + 1 == nrows())
|
||||||
--row;
|
--row;
|
||||||
swap(numbered_[row], numbered_[row + 1]);
|
std::swap(numbered_[row], numbered_[row + 1]);
|
||||||
swap(numbers_[row], numbers_[row + 1]);
|
std::swap(numbers_[row], numbers_[row + 1]);
|
||||||
swap(label_[row], label_[row + 1]);
|
std::swap(label_[row], label_[row + 1]);
|
||||||
InsetMathGrid::swapRow(row);
|
InsetMathGrid::swapRow(row);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1326,9 +1326,9 @@ void InsetMathHull::delRow(row_type row)
|
|||||||
if (nrows() <= 1 || !rowChangeOK())
|
if (nrows() <= 1 || !rowChangeOK())
|
||||||
return;
|
return;
|
||||||
if (row + 1 == nrows() && type_ == hullMultline) {
|
if (row + 1 == nrows() && type_ == hullMultline) {
|
||||||
swap(numbered_[row - 1], numbered_[row]);
|
std::swap(numbered_[row - 1], numbered_[row]);
|
||||||
swap(numbers_[row - 1], numbers_[row]);
|
std::swap(numbers_[row - 1], numbers_[row]);
|
||||||
swap(label_[row - 1], label_[row]);
|
std::swap(label_[row - 1], label_[row]);
|
||||||
InsetMathGrid::delRow(row);
|
InsetMathGrid::delRow(row);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user