mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
InsetTabular.cpp: code optimization; there is no need for a conversion
This commit is contained in:
parent
eeda1c099e
commit
bdda095669
@ -5595,7 +5595,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
|
|||||||
case Tabular::UNSET_ROTATE_CELL:
|
case Tabular::UNSET_ROTATE_CELL:
|
||||||
for (row_type r = sel_row_start; r <= sel_row_end; ++r)
|
for (row_type r = sel_row_start; r <= sel_row_end; ++r)
|
||||||
for (col_type c = sel_col_start; c <= sel_col_end; ++c)
|
for (col_type c = sel_col_start; c <= sel_col_end; ++c)
|
||||||
tabular.setRotateCell(tabular.cellIndex(r, c), convert<int>("0"));
|
tabular.setRotateCell(tabular.cellIndex(r, c), 0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Tabular::TOGGLE_ROTATE_CELL:
|
case Tabular::TOGGLE_ROTATE_CELL:
|
||||||
@ -5607,9 +5607,9 @@ void InsetTabular::tabularFeatures(Cursor & cur,
|
|||||||
for (col_type c = sel_col_start; c <= sel_col_end; ++c) {
|
for (col_type c = sel_col_start; c <= sel_col_end; ++c) {
|
||||||
// when pressing the rotate cell button we default to 90° rotation
|
// when pressing the rotate cell button we default to 90° rotation
|
||||||
if (oneNotRotated)
|
if (oneNotRotated)
|
||||||
tabular.setRotateCell(tabular.cellIndex(r, c), convert<int>("90"));
|
tabular.setRotateCell(tabular.cellIndex(r, c), 90);
|
||||||
else
|
else
|
||||||
tabular.setRotateCell(tabular.cellIndex(r, c), convert<int>("0"));
|
tabular.setRotateCell(tabular.cellIndex(r, c), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user