From d0a70cf731c5d3e2698f62876a4acade0361bb8e Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Mon, 3 Dec 2018 15:12:58 +0100 Subject: Remove dependance of SVGViewWidget on SVGView and View. Remove SVGView. Another step in making View not dependent on GUI. --- src/inkview-window.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/inkview-window.cpp') 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 #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 { -- cgit v1.2.3