summaryrefslogtreecommitdiffstats
path: root/src/extension/effect.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2007-10-30 19:29:36 +0000
committergouldtj <gouldtj@users.sourceforge.net>2007-10-30 19:29:36 +0000
commitd0090423642f0d4eea455ff77087027be242b148 (patch)
tree21f238ed7d056f98929384e053831247300f69f0 /src/extension/effect.cpp
parentr16677@shi: ted | 2007-10-17 19:31:04 -0700 (diff)
downloadinkscape-d0090423642f0d4eea455ff77087027be242b148.tar.gz
inkscape-d0090423642f0d4eea455ff77087027be242b148.zip
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)
Diffstat (limited to 'src/extension/effect.cpp')
-rw-r--r--src/extension/effect.cpp8
1 files changed, 5 insertions, 3 deletions
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<void> * changeSignal = new sigc::signal<void>;
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();