summaryrefslogtreecommitdiffstats
path: root/src/helper/stock-items.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/stock-items.cpp')
-rw-r--r--src/helper/stock-items.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helper/stock-items.cpp b/src/helper/stock-items.cpp
index 99dc21e58..5a56b89ff 100644
--- a/src/helper/stock-items.cpp
+++ b/src/helper/stock-items.cpp
@@ -29,7 +29,7 @@
#include "document-private.h"
#include "sp-pattern.h"
#include "sp-marker.h"
-#include "desktop-handles.h"
+#include "desktop.h"
#include "inkscape.h"
#include "io/sys.h"
@@ -196,7 +196,7 @@ SPObject *get_stock_item(gchar const *urn, gboolean stock)
gchar * base = g_strndup(e, a);
SPDesktop *desktop = SP_ACTIVE_DESKTOP;
- SPDocument *doc = sp_desktop_document(desktop);
+ SPDocument *doc = desktop->getDocument();
SPDefs *defs = doc->getDefs();
if (!defs) {
g_free(base);
@@ -266,7 +266,7 @@ SPObject *get_stock_item(gchar const *urn, gboolean stock)
else {
SPDesktop *desktop = SP_ACTIVE_DESKTOP;
- SPDocument *doc = sp_desktop_document(desktop);
+ SPDocument *doc = desktop->getDocument();
SPObject *object = doc->getObjectById(urn);
return object;