int scol = mTable.getSelectedColumn();
int row = srow == -1 ? mRow : srow;
row = row == -1 ? mCalc.rows() : row;
row--;
row = row < 0 ? 0 : row;
Command command = new AddRowCommand(mCalc, row);
getUndoInterface().execute(command);
if (srow != -1 && scol != -1) {
mTable.changeSelection(srow + 1, scol, false, false);
}
}