diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-06-27 06:34:35 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-06-27 06:34:35 +0000 |
| commit | f5315c60ff13f0ef337243245ce35f712b665adb (patch) | |
| tree | 17d39880fe07a58b3b7013fcea2f6356851734d1 /src/desktop-style.cpp | |
| parent | (bzr r3144) (diff) | |
| download | inkscape-f5315c60ff13f0ef337243245ce35f712b665adb.tar.gz inkscape-f5315c60ff13f0ef337243245ce35f712b665adb.zip | |
use an accessor method to get filter from style
(bzr r3145)
Diffstat (limited to 'src/desktop-style.cpp')
| -rw-r--r-- | src/desktop-style.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index c6344da5c..94221ba54 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -1030,12 +1030,12 @@ objects_query_blend (GSList *objects, SPStyle *style_res) items++; //if object has a filter - if (style->filter.set && style->filter.href->getObject()) { + if (style->filter.set && style->getFilter()) { int blurcount = 0; int blendcount = 0; // determine whether filter is simple (blend and/or blur) or complex - for(SPObject *primitive_obj = style->filter.href->getObject()->children; + for(SPObject *primitive_obj = style->getFilter()->children; primitive_obj && SP_IS_FILTER_PRIMITIVE(primitive_obj); primitive_obj = primitive_obj->next) { SPFilterPrimitive *primitive = SP_FILTER_PRIMITIVE(primitive_obj); @@ -1051,7 +1051,7 @@ objects_query_blend (GSList *objects, SPStyle *style_res) // simple filter if(blurcount == 1 || blendcount == 1) { - for(SPObject *primitive_obj = style->filter.href->getObject()->children; + for(SPObject *primitive_obj = style->getFilter()->children; primitive_obj && SP_IS_FILTER_PRIMITIVE(primitive_obj); primitive_obj = primitive_obj->next) { if(SP_IS_FEBLEND(primitive_obj)) { @@ -1118,9 +1118,9 @@ objects_query_blur (GSList *objects, SPStyle *style_res) items ++; //if object has a filter - if (style->filter.set && style->filter.href->getObject()) { + if (style->filter.set && style->getFilter()) { //cycle through filter primitives - SPObject *primitive_obj = style->filter.href->getObject()->children; + SPObject *primitive_obj = style->getFilter()->children; while (primitive_obj) { if (SP_IS_FILTER_PRIMITIVE(primitive_obj)) { SPFilterPrimitive *primitive = SP_FILTER_PRIMITIVE(primitive_obj); |
