projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bluray lpcm fixes from Andrew
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
cinelerra
/
undostack.C
diff --git
a/cinelerra-5.1/cinelerra/undostack.C
b/cinelerra-5.1/cinelerra/undostack.C
index 23f33bc193148fadc237dc9ed85d8e8133429778..e0de195c01bf3f63f206691a50a82a3358666ec4 100644
(file)
--- a/
cinelerra-5.1/cinelerra/undostack.C
+++ b/
cinelerra-5.1/cinelerra/undostack.C
@@
-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 );