Credit Andrew - fix vorbis audio which was scratchy and ensure aging plugin does...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / undostack.C
index 23f33bc193148fadc237dc9ed85d8e8133429778..e0de195c01bf3f63f206691a50a82a3358666ec4 100644 (file)
@@ -59,7 +59,7 @@ UndoStackItem *UndoStack::get_current_redo()
 UndoStackItem* UndoStack::push()
 {
 // delete oldest 2 undos if necessary
-       if( total() > UNDOLEVELS ) {
+       while( total() > UNDOLEVELS ) {
                UndoStackItem *item = first, *key = item;
 #ifdef UNDO_INCREMENTAL
                for( int i=2; --i>=0; item=item->next );