diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-23 05:52:15 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-23 05:52:15 +0000 |
| commit | f6e71416f19343cb97098c175acce52771e5e32b (patch) | |
| tree | d487d09840f9cce4372ac89b22f81bf3b2c858e4 /src/document.cpp | |
| parent | purge old toolbar code, fill in values and labels (diff) | |
| download | inkscape-f6e71416f19343cb97098c175acce52771e5e32b.tar.gz inkscape-f6e71416f19343cb97098c175acce52771e5e32b.zip | |
allow multiple (balanced) calls to add and remove document
(bzr r2745)
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/document.cpp b/src/document.cpp index e66089fed..4dd0f3d21 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -118,8 +118,6 @@ SPDocument::~SPDocument() { collectOrphans(); if (priv) { - inkscape_remove_document(this); - if (priv->partial) { sp_repr_free_log(priv->partial); priv->partial = NULL; @@ -315,7 +313,6 @@ sp_document_create(Inkscape::XML::Document *rdoc, document->_selection_changed_connection = Inkscape::NSApplication::Editor::connectSelectionChanged (sigc::mem_fun (*document, &SPDocument::reset_key)); document->_desktop_activated_connection = Inkscape::NSApplication::Editor::connectDesktopActivated (sigc::mem_fun (*document, &SPDocument::reset_key)); } - inkscape_add_document(document); return document; } @@ -402,7 +399,6 @@ sp_document_new_from_mem(gchar const *buffer, gint length, unsigned int keepaliv SPDocument *sp_document_new_dummy() { SPDocument *document = new SPDocument(); - inkscape_add_document(document); return document; } |
