Fix a bug in RemoveMeta
This commit is contained in:
parent
7dfe4bdb18
commit
135e702eb1
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user