summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 79ec30e)
raw | patch | inline | side by side (parent: 79ec30e)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 14 Mar 2007 06:19:48 +0000 (06:19 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 14 Mar 2007 06:19:48 +0000 (06:19 +0000) |
src/extension/implementation/script.cpp | patch | blob | history |
index a244e9abbbb30c32c55ebb68740077dffae28145..003f1fc64ebe809d04b4e5465c6650ac249042da 100644 (file)
@@ -771,6 +771,9 @@ Script::effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View *do
Glib::ustring tempfilename_out= tmpname;
g_free(tmpname);
+ SPDesktop *desktop = (SPDesktop *) doc;
+ sp_namedview_document_from_window(desktop);
+
Inkscape::Extension::save(
Inkscape::Extension::db.get(SP_MODULE_KEY_OUTPUT_SVG_INKSCAPE),
doc->doc(), tempfilename_in.c_str(), FALSE, FALSE, FALSE);
@@ -779,7 +782,6 @@ Script::effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View *do
/* fixme: Should be some sort of checking here. Don't know how to do this with structs instead
* of classes. */
- SPDesktop *desktop = (SPDesktop *) doc;
if (desktop != NULL) {
Inkscape::Util::GSListConstIterator<SPItem *> selected =
sp_desktop_selection(desktop)->itemList();