From: Uwe Stöhr Date: Mon, 19 Mar 2012 00:28:38 +0000 (+0100) Subject: InsetTabular.cpp: code optimization; there is no need for a conversion X-Git-Tag: 2.1.0beta1~1933^2~90 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bdda095669121cdd8ca7adef29bbef29fa876aae;p=features.git InsetTabular.cpp: code optimization; there is no need for a conversion --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 57bca38693..79aaf4b724 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -5595,7 +5595,7 @@ void InsetTabular::tabularFeatures(Cursor & cur, case Tabular::UNSET_ROTATE_CELL: for (row_type r = sel_row_start; r <= sel_row_end; ++r) for (col_type c = sel_col_start; c <= sel_col_end; ++c) - tabular.setRotateCell(tabular.cellIndex(r, c), convert("0")); + tabular.setRotateCell(tabular.cellIndex(r, c), 0); break; 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) { // when pressing the rotate cell button we default to 90° rotation if (oneNotRotated) - tabular.setRotateCell(tabular.cellIndex(r, c), convert("90")); + tabular.setRotateCell(tabular.cellIndex(r, c), 90); else - tabular.setRotateCell(tabular.cellIndex(r, c), convert("0")); + tabular.setRotateCell(tabular.cellIndex(r, c), 0); } } break;