From 690bdb658150d71631d1f70b527a26bef6c30bfe Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Mon, 27 Apr 2020 14:01:44 +1000 Subject: [PATCH] timeline: make sure track length is updated if a block is disconnected --- app/node/output/track/track.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/node/output/track/track.cpp b/app/node/output/track/track.cpp index 24497f684..3adc7e6b7 100644 --- a/app/node/output/track/track.cpp +++ b/app/node/output/track/track.cpp @@ -556,9 +556,7 @@ void TrackOutput::BlockDisconnected(NodeEdgePtr edge) block_cache_.removeAt(index_of_block); // If there were blocks following this one, update their ins/outs - if (index_of_block < block_cache_.size()) { - UpdateInOutFrom(index_of_block); - } + UpdateInOutFrom(index_of_block); // Join the previous and next blocks together if (connected_block->previous()) {