- UndoStackItem *current = undo_stack->current;
-//printf("MainUndo::redo 1\n");
-//dump();
-
-// Get 1st entry
- if(!current) current = undo_stack->first;
-
-// Advance to a before entry
- if(current && (undo_stack->number_of(current) % 2))
- {
- current = NEXT;
- }
-
-// Advance to an after entry
- if(current && !(undo_stack->number_of(current) % 2))
- {
- current = NEXT;
- }
-
- if(current)
- {
- FileXML file;
- char *current_data = current->get_data();