summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/latex-pstricks-out.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2011-08-07 10:53:12 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2011-08-07 10:53:12 +0000
commit75976ea07dba9b97186667524d0a76603de416af (patch)
tree4cb68dabb3cb7d5219e6ed6b660f0ded13fc25d3 /src/extension/internal/latex-pstricks-out.cpp
parentFix compilation (oops). (diff)
downloadinkscape-75976ea07dba9b97186667524d0a76603de416af.tar.gz
inkscape-75976ea07dba9b97186667524d0a76603de416af.zip
Rewrite NRArena -> Inkscape::Drawing. Call render and update
methods on the Drawing rather than on the root DrawingItem. (bzr r10347.1.25)
Diffstat (limited to 'src/extension/internal/latex-pstricks-out.cpp')
-rw-r--r--src/extension/internal/latex-pstricks-out.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/extension/internal/latex-pstricks-out.cpp b/src/extension/internal/latex-pstricks-out.cpp
index 000280158..3a16268e6 100644
--- a/src/extension/internal/latex-pstricks-out.cpp
+++ b/src/extension/internal/latex-pstricks-out.cpp
@@ -18,8 +18,8 @@
#include "extension/system.h"
#include "extension/print.h"
#include "extension/db.h"
-#include "display/nr-arena.h"
#include "display/display-forward.h"
+#include "display/drawing.h"
#include "sp-root.h"
@@ -61,21 +61,19 @@ void LatexOutput::save(Inkscape::Extension::Output * /*mod2*/, SPDocument *doc,
/* Start */
context.module = mod;
/* fixme: This has to go into module constructor somehow */
- // Create new arena
mod->base = doc->getRoot();
- mod->arena = NRArena::create();
+ Inkscape::Drawing drawing;
mod->dkey = SPItem::display_key_new (1);
- mod->root = (mod->base)->invoke_show (mod->arena, mod->dkey, SP_ITEM_SHOW_DISPLAY);
+ mod->root = (mod->base)->invoke_show (drawing, mod->dkey, SP_ITEM_SHOW_DISPLAY);
+ drawing.setRoot(mod->root);
/* Print document */
ret = mod->begin (doc);
(mod->base)->invoke_print (&context);
ret = mod->finish ();
- /* Release arena */
+ /* Release things */
(mod->base)->invoke_hide (mod->dkey);
mod->base = NULL;
mod->root = NULL; // should have been deleted by invoke_hide
- nr_object_unref ((NRObject *) mod->arena);
- mod->arena = NULL;
/* end */
mod->set_param_string("destination", oldoutput);