[apps/shared/editable_cell_table_view_controller] Assert cell is not being edited before setEven

This commit is contained in:
Ruben Dashyan
2019-08-22 09:49:32 +02:00
parent d9028b2cc5
commit 7d411fe61f

View File

@@ -66,9 +66,7 @@ void EditableCellTableViewController::willDisplayCellAtLocationWithDisplayMode(H
// The cell is editable
if (cellAtLocationIsEditable(i, j)) {
EvenOddEditableTextCell * myEditableValueCell = (EvenOddEditableTextCell *)cell;
if (myEditableValueCell->editableTextCell()->textField()->isEditing()) {
return;
}
assert(!myEditableValueCell->editableTextCell()->textField()->isEditing());
myCell->setEven(j%2 == 0);
char buffer[PrintFloat::bufferSizeForFloatsWithPrecision(Preferences::LargeNumberOfSignificantDigits)];
// Special case 1: last row