summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9069c52)
raw | patch | inline | side by side (parent: 9069c52)
author | kiirala <kiirala@users.sourceforge.net> | |
Thu, 24 Jul 2008 15:06:47 +0000 (15:06 +0000) | ||
committer | kiirala <kiirala@users.sourceforge.net> | |
Thu, 24 Jul 2008 15:06:47 +0000 (15:06 +0000) |
src/filter-chemistry.cpp | patch | blob | history | |
src/ui/widget/object-composite-settings.cpp | patch | blob | history |
index 90151d6d20135dc84eb2f8e85bab6e0abdcdb9ee..cefb3227dd29cf82583511d21903e3ffb0230c2a 100644 (file)
--- a/src/filter-chemistry.cpp
+++ b/src/filter-chemistry.cpp
* bulia byak
* Niko Kiirala
*
- * Copyright (C) 2006,2007 authors
+ * Copyright (C) 2006-2008 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
diff --git a/src/ui/widget/object-composite-settings.cpp b/src/ui/widget/object-composite-settings.cpp
index 7f0f4767b6ea4b0a1b53b62e4c6f89602da2309a..088af176abdc05099d5f730d22cb12a09900a9a0 100644 (file)
* Authors:
* Bryce W. Harrington <bryce@bryceharrington.org>
* Gustav Broberg <broberg@kth.se>
+ * Niko Kiirala <niko@kiirala.com>
*
- * Copyright (C) 2004--2007 Authors
+ * Copyright (C) 2004--2008 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
radius = 0;
}
- //const Glib::ustring blendmode = _fe_cb.get_blend_mode();
+ const Glib::ustring blendmode = _fe_cb.get_blend_mode();
//apply created filter to every selected item
for (StyleSubject::iterator i = _subject->begin() ; i != _subject->end() ; ++i ) {
SPStyle *style = SP_OBJECT_STYLE(item);
g_assert(style != NULL);
+ if (blendmode != "normal") {
+ SPFilter *filter = new_filter_simple_from_item(document, item, blendmode.c_str(), radius);
+ sp_style_set_property_url(item, "filter", filter, false);
+ }
+
if (radius == 0 && item->style->filter.set
&& filter_is_single_gaussian_blur(SP_FILTER(item->style->getFilter()))) {
remove_filter(item, false);
}
- else {
+ else if (radius != 0) {
SPFilter *filter = modify_filter_gaussian_blur_from_item(document, item, radius);
sp_style_set_property_url(item, "filter", filter, false);
}