diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2011-07-16 07:42:39 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2011-07-16 07:42:39 +0000 |
| commit | 2be2cf32db0668dc64512a98f6c2394152bd10cc (patch) | |
| tree | 8e25abb2f884e06692d861e6a1471440d6554946 /src/print.cpp | |
| parent | added WITH_GNOME_VFS as an option for cmake (diff) | |
| download | inkscape-2be2cf32db0668dc64512a98f6c2394152bd10cc.tar.gz inkscape-2be2cf32db0668dc64512a98f6c2394152bd10cc.zip | |
Cleanup of oudated/redundant SP_ITEM() macro use.
(bzr r10461)
Diffstat (limited to 'src/print.cpp')
| -rw-r--r-- | src/print.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/print.cpp b/src/print.cpp index 0774f5751..1ee58a3e6 100644 --- a/src/print.cpp +++ b/src/print.cpp @@ -21,6 +21,7 @@ #include "extension/print.h" #include "extension/system.h" #include "print.h" +#include "sp-root.h" #include "ui/dialog/print.h" @@ -90,7 +91,7 @@ sp_print_document(Gtk::Window& parentWindow, SPDocument *doc) doc->ensureUpToDate(); // Build arena - SPItem *base = SP_ITEM(doc->getRoot()); + SPItem *base = doc->getRoot(); NRArena *arena = NRArena::create(); unsigned int dkey = SPItem::display_key_new(1); // TODO investigate why we are grabbing root and then ignoring it. @@ -126,7 +127,7 @@ sp_print_document_to_file(SPDocument *doc, gchar const *filename) context.module = mod; /* fixme: This has to go into module constructor somehow */ /* Create new arena */ - mod->base = SP_ITEM(doc->getRoot()); + mod->base = doc->getRoot(); mod->arena = NRArena::create(); mod->dkey = SPItem::display_key_new(1); mod->root = (mod->base)->invoke_show(mod->arena, mod->dkey, SP_ITEM_SHOW_DISPLAY); |
