From d0090423642f0d4eea455ff77087027be242b148 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 30 Oct 2007 19:29:36 +0000 Subject: r16892@shi: ted | 2007-10-29 21:33:09 -0700 Okay, so now the caches get into the execution environment and can be passed around to the effects. Now it's a matter of implementing the caches in the drivers. (bzr r3978) --- src/extension/effect.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/extension/effect.cpp') diff --git a/src/extension/effect.cpp b/src/extension/effect.cpp index 6b03014f8..f7caf125d 100644 --- a/src/extension/effect.cpp +++ b/src/extension/effect.cpp @@ -13,7 +13,7 @@ #include "desktop-handles.h" #include "selection.h" #include "sp-namedview.h" -#include "document.h" +#include "desktop.h" #include "implementation/implementation.h" #include "effect.h" #include "execution-env.h" @@ -219,9 +219,11 @@ Effect::prefs (Inkscape::UI::View::View * doc) sigc::signal * changeSignal = new sigc::signal; Gtk::Widget * controls; - controls = imp->prefs_effect(this, doc, changeSignal, NULL); + SPDesktop * spdesktop = (SPDesktop *)doc; + Implementation::ImplementationDocumentCache * docCache = imp->newDocCache(this, spdesktop->doc()); + controls = imp->prefs_effect(this, doc, changeSignal, docCache); - ExecutionEnv executionEnv(this, doc, controls, changeSignal); + ExecutionEnv executionEnv(this, doc, controls, changeSignal, NULL, docCache); timer->lock(); executionEnv.run(); -- cgit v1.2.3