src/history.cpp

changeset 498
791c831c8020
parent 497
c51941e590b6
child 503
bebe09014dd6
--- 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);
 

mercurial