[apps/*/expression_model_list_controller] Use isAddEmptyRow

This commit is contained in:
Ruben Dashyan
2019-09-06 14:30:22 +02:00
committed by LeaNumworks
parent d8ec5ab2b3
commit a5bff416d1
2 changed files with 3 additions and 7 deletions

View File

@@ -40,8 +40,7 @@ int ListController::numberOfExpressionRows() const {
KDCoordinate ListController::expressionRowHeight(int j) {
KDCoordinate defaultHeight = Metric::StoreRowHeight;
if (modelStore()->numberOfModels() < modelStore()->maxNumberOfModels() && j == numberOfRows() - 1) {
// Add sequence row
if (isAddEmptyRow(j)) {
return defaultHeight;
}
Sequence * sequence = modelStore()->modelForRecord(modelStore()->recordAtIndex(modelIndexForRow(j)));