summaryrefslogtreecommitdiffstats
path: root/src/inkview-window.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-12-03 14:12:58 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-12-03 14:12:58 +0000
commitd0a70cf731c5d3e2698f62876a4acade0361bb8e (patch)
treeff8e35ffe8c44db6b28b8c29c108513307f057c7 /src/inkview-window.cpp
parentUse std::unique_ptr for all MessageContext (diff)
downloadinkscape-d0a70cf731c5d3e2698f62876a4acade0361bb8e.tar.gz
inkscape-d0a70cf731c5d3e2698f62876a4acade0361bb8e.zip
Remove dependance of SVGViewWidget on SVGView and View. Remove SVGView.
Another step in making View not dependent on GUI.
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 {