diff --git a/src/view/grid/GridAccount.cpp b/src/view/grid/GridAccount.cpp index 9fd5fc0..4f6fa51 100644 --- a/src/view/grid/GridAccount.cpp +++ b/src/view/grid/GridAccount.cpp @@ -448,6 +448,7 @@ void GridAccount::RemoveMeta(Operation* op, int line, bool removeRoot, bool dele else { DeleteRows(line+1, 1); + if (_displayedOperations[line+1]->fix_cost) _fixCosts--; _displayedOperations.erase(_displayedOperations.begin()+line+1); if (deleteOp) { @@ -462,6 +463,7 @@ void GridAccount::RemoveMeta(Operation* op, int line, bool removeRoot, bool dele if (removeRoot) { DeleteRows(line, 1); + if (_displayedOperations[line]->fix_cost) _fixCosts--; _displayedOperations.erase(_displayedOperations.begin()+line); if (deleteOp) {