src/editHistory.cpp

changeset 978
4603d8fd063e
parent 968
4b93b7963456
child 981
5d5d84ab2c48
--- a/src/editHistory.cpp	Mon Aug 31 23:36:08 2015 +0300
+++ b/src/editHistory.cpp	Sat Sep 05 23:03:24 2015 +0300
@@ -172,7 +172,7 @@
 //
 void EditHistory::undo() const
 {
-	LDObject* obj = CurrentDocument()->getObject (index());
+	LDObject* obj = g_win->currentDocument()->getObject (index());
 	LDObject* newobj = ParseLine (oldCode());
 	obj->replace (newobj);
 	g_win->R()->compileObject (newobj);
@@ -182,7 +182,7 @@
 //
 void EditHistory::redo() const
 {
-	LDObject* obj = CurrentDocument()->getObject (index());
+	LDObject* obj = g_win->currentDocument()->getObject (index());
 	LDObject* newobj = ParseLine (newCode());
 	obj->replace (newobj);
 	g_win->R()->compileObject (newobj);

mercurial