--- 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);