39 |
39 |
40 const Changeset& set = changeset (pos()); |
40 const Changeset& set = changeset (pos()); |
41 g_fullRefresh = false; |
41 g_fullRefresh = false; |
42 |
42 |
43 // Iterate the list in reverse and undo all actions |
43 // Iterate the list in reverse and undo all actions |
44 for (const AbstractHistoryEntry* change : c_rev<AbstractHistoryEntry*> (set)) |
44 for (auto it = set.end() - 1; it != set.begin(); --it) |
45 change->undo(); |
45 (*it)->undo(); |
46 |
46 |
47 setPos (pos() - 1); |
47 setPos (pos() - 1); |
48 |
48 |
49 if (!g_fullRefresh) |
49 if (!g_fullRefresh) |
50 g_win->refresh(); |
50 g_win->refresh(); |