--- a/src/history.cpp Sat Oct 05 12:51:13 2013 +0300 +++ b/src/history.cpp Sat Oct 05 15:18:47 2013 +0300 @@ -41,8 +41,8 @@ g_fullRefresh = false; // Iterate the list in reverse and undo all actions - for (const AbstractHistoryEntry* change : c_rev<AbstractHistoryEntry*> (set)) - change->undo(); + for (auto it = set.end() - 1; it != set.begin(); --it) + (*it)->undo(); setPos (pos() - 1);