diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2007-09-10 06:33:47 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2007-09-10 06:33:47 +0000 |
| commit | 16888ce63e21b83d94595055150072ef3037ca1d (patch) | |
| tree | 649a9f640d4f0354e59196404833e6d1ae9833cb /src/tweak-context.cpp | |
| parent | rearrange, disable fidelity for color modes (diff) | |
| download | inkscape-16888ce63e21b83d94595055150072ef3037ca1d.tar.gz inkscape-16888ce63e21b83d94595055150072ef3037ca1d.zip | |
Purged fill type enum
(bzr r3706)
Diffstat (limited to 'src/tweak-context.cpp')
| -rw-r--r-- | src/tweak-context.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tweak-context.cpp b/src/tweak-context.cpp index 1e7379dea..49b39a5e6 100644 --- a/src/tweak-context.cpp +++ b/src/tweak-context.cpp @@ -747,27 +747,27 @@ sp_tweak_color_recursive (guint mode, SPItem *item, SPItem *item_at_point, } else { this_force = force * tweak_profile (NR::L2 (p - center), radius); } - + if (this_force > 0.002) { if (do_fill) { - if (style->fill.type == SP_PAINT_TYPE_COLOR) { + if (style->fill.isPaintserver()) { + tweak_colors_in_gradient (item, true, fill_goal, p, radius, this_force, mode, do_h, do_s, do_l, do_o); + did = true; + } else if (style->fill.isColor()) { tweak_color (mode, style->fill.value.color.v.c, fill_goal, this_force, do_h, do_s, do_l); item->updateRepr(); did = true; - } else if (style->fill.type == SP_PAINT_TYPE_PAINTSERVER) { - tweak_colors_in_gradient (item, true, fill_goal, p, radius, this_force, mode, do_h, do_s, do_l, do_o); - did = true; } } if (do_stroke) { - if (style->stroke.type == SP_PAINT_TYPE_COLOR) { + if (style->stroke.isPaintserver()) { + tweak_colors_in_gradient (item, false, stroke_goal, p, radius, this_force, mode, do_h, do_s, do_l, do_o); + did = true; + } else if (style->stroke.isColor()) { tweak_color (mode, style->stroke.value.color.v.c, stroke_goal, this_force, do_h, do_s, do_l); item->updateRepr(); did = true; - } else if (style->stroke.type == SP_PAINT_TYPE_PAINTSERVER) { - tweak_colors_in_gradient (item, false, stroke_goal, p, radius, this_force, mode, do_h, do_s, do_l, do_o); - did = true; } } if (do_opacity && do_o) { |
