version update, undo fix
[goodguy/history.git] / cinelerra-5.1 / cinelerra / undostack.C
index de738b84d3c6f7cf4be51666d53fe12430f6f401..1bb781022695ec1ba5059c834c236902924a7696 100644 (file)
@@ -38,8 +38,8 @@ UndoStack::~UndoStack()
 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;
        return item;
 }