diff options
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp index 2a482648f..cfbcf95fe 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -54,6 +54,7 @@ #include "libnr/nr-rect.h" #include "sp-item-group.h" #include "perspective3d.h" +#include "profile-manager.h" #include "display/nr-arena-item.h" @@ -132,6 +133,9 @@ SPDocument::SPDocument() { priv = p; + // Once things are set, hook in the manager + profileManager = new Inkscape::ProfileManager(this); + // XXX only for testing! priv->undoStackObservers.add(p->console_output_undo_observer); } @@ -139,6 +143,12 @@ SPDocument::SPDocument() { SPDocument::~SPDocument() { collectOrphans(); + // kill/unhook this first + if ( profileManager ) { + delete profileManager; + profileManager = 0; + } + if (priv) { if (priv->partial) { sp_repr_free_log(priv->partial); |
