From 7531449fc6f5c3113802747db11a2bca2e308555 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Wed, 30 Jan 2019 15:54:01 +0100 Subject: Allow InkscapeApplication to track current document, selection, and desktop. --- src/desktop.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/desktop.cpp') diff --git a/src/desktop.cpp b/src/desktop.cpp index 20c4914a4..ff40e5934 100644 --- a/src/desktop.cpp +++ b/src/desktop.cpp @@ -684,6 +684,7 @@ SPDesktop::change_document (SPDocument *theDocument) (this can probably be done in a better way) */ InkscapeWindow *parent = this->getInkscapeWindow(); g_assert(parent != nullptr); + parent->change_document(theDocument); SPDesktopWidget *dtw = parent->get_desktop_widget(); if (dtw) { dtw->desktop = this; -- cgit v1.2.3