From a8c615d56eda3f3e6ee05e9b133151daaeafae72 Mon Sep 17 00:00:00 2001 From: gustav_b Date: Sun, 1 Oct 2006 18:57:05 +0000 Subject: Moved EventLog from SPDocument to SPDesktop to prevent it from being created when Inkscape is started in non-gui mode. Fixes a critical assertion caused by creation of a Gtk::TreeStore. (bzr r1749) --- src/desktop.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/desktop.cpp') diff --git a/src/desktop.cpp b/src/desktop.cpp index 57d89c5bc..722aa81e9 100644 --- a/src/desktop.cpp +++ b/src/desktop.cpp @@ -79,6 +79,7 @@ #include "xml/repr.h" #include "message-context.h" #include "layer-manager.h" +#include "event-log.h" namespace Inkscape { namespace XML { class Node; }} @@ -287,6 +288,10 @@ SPDesktop::init (SPNamedView *nv, SPCanvas *aCanvas) /* setup LayerManager */ // (Setting up after the connections are all in place, as it may use some of them) layer_manager = new Inkscape::LayerManager( this ); + + /* setup EventLog */ + event_log = new Inkscape::EventLog(document); + document->addUndoObserver(*event_log); } -- cgit v1.2.3