summaryrefslogtreecommitdiffstats
path: root/src/inkview-window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inkview-window.cpp')
-rw-r--r--src/inkview-window.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/inkview-window.cpp b/src/inkview-window.cpp
index 44dce62aa..d69734131 100644
--- a/src/inkview-window.cpp
+++ b/src/inkview-window.cpp
@@ -20,7 +20,6 @@
#include <iostream>
#include "document.h"
-#include "inkscape.h" // INKSCAPE macro
#include "ui/monitor.h"
#include "ui/view/svg-view-widget.h"
@@ -149,10 +148,6 @@ InkviewWindow::show_document(SPDocument* document)
int height = MIN((int)document->getHeight().value("px") * _scale, monitor_geometry.get_height());
resize (width, height);
- // setDocument() reduces the document count... bump it up so document won't be deleted.
- // ToDo: view should not be handling document lifetime.
- INKSCAPE.add_document(document);
-
if (_view) {
_view->setDocument(document);
} else {