projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version update, undo fix
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
undostack.C
diff --git
a/cinelerra-5.1/cinelerra/undostack.C
b/cinelerra-5.1/cinelerra/undostack.C
index de738b84d3c6f7cf4be51666d53fe12430f6f401..1bb781022695ec1ba5059c834c236902924a7696 100644
(file)
--- a/
cinelerra-5.1/cinelerra/undostack.C
+++ b/
cinelerra-5.1/cinelerra/undostack.C
@@
-38,8
+38,8
@@
UndoStack::~UndoStack()
UndoStackItem *UndoStack::get_current_undo()
{
UndoStackItem *item = current;
UndoStackItem *UndoStack::get_current_undo()
{
UndoStackItem *item = current;
- if( item && !(number_of(item) % 2) ) item = item->previous;
if( item && (number_of(item) % 2) ) item = item->previous;
if( item && (number_of(item) % 2) ) item = item->previous;
+ if( item && !(number_of(item) % 2) ) item = item->previous;
return item;
}
return item;
}