Some minor polishment

This commit is contained in:
Juergen Spitzmueller 2021-01-26 14:50:14 +01:00
parent 27e7eb4b14
commit c5e5dda0ef

View File

@ -5570,8 +5570,8 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s,
break; break;
} }
if (action == Tabular::MOVE_COLUMN_RIGHT || if (action == Tabular::MOVE_COLUMN_RIGHT
action == Tabular::MOVE_COLUMN_LEFT) { || action == Tabular::MOVE_COLUMN_LEFT) {
bool has_multicol = (action == Tabular::MOVE_COLUMN_RIGHT) bool has_multicol = (action == Tabular::MOVE_COLUMN_RIGHT)
? tabular.hasMultiColumn(ce + 1) ? tabular.hasMultiColumn(ce + 1)
: tabular.hasMultiColumn(cs - 1); : tabular.hasMultiColumn(cs - 1);
@ -5582,14 +5582,14 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s,
} }
} }
if (has_multicol) { if (has_multicol) {
status.message(_("Multi-column in selected or destination columns.")); status.message(_("Column movement not supported with multi-columns."));
status.setEnabled(false); status.setEnabled(false);
break; break;
} }
} }
if (action == Tabular::MOVE_ROW_DOWN || if (action == Tabular::MOVE_ROW_DOWN
action == Tabular::MOVE_ROW_UP) { || action == Tabular::MOVE_ROW_UP) {
bool has_multirow = (action == Tabular::MOVE_ROW_DOWN) bool has_multirow = (action == Tabular::MOVE_ROW_DOWN)
? tabular.hasMultiRow(re + 1) ? tabular.hasMultiRow(re + 1)
: tabular.hasMultiRow(rs - 1); : tabular.hasMultiRow(rs - 1);
@ -5600,7 +5600,7 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s,
} }
} }
if (has_multirow) { if (has_multirow) {
status.message(_("Multi-row in selected or destination rows.")); status.message(_("Row movement not supported with multi-rows."));
status.setEnabled(false); status.setEnabled(false);
break; break;
} }