[escher] TableView::cellAtLocation should return nullptr if the cell is

invisible and therefore no view displays it.

Fix bug: add 4 functions, in the values table one cell is wrong as soon
as you edit an x value
This commit is contained in:
Émilie Feral
2018-11-26 10:25:36 +01:00
committed by LeaNumworks
parent f30df04dba
commit 55be86ef50
6 changed files with 16 additions and 3 deletions

View File

@@ -159,7 +159,9 @@ void ListParameterController::tableViewDidChangeSelection(SelectableTableView *
if (previousSelectedCellY == 1) {
#endif
MessageTableCellWithEditableText * myCell = (MessageTableCellWithEditableText *)t->cellAtLocation(previousSelectedCellX, previousSelectedCellY);
myCell->setEditing(false);
if (myCell) {
myCell->setEditing(false);
}
app()->setFirstResponder(&m_selectableTableView);
}
#if FUNCTION_COLOR_CHOICE