From 16888ce63e21b83d94595055150072ef3037ca1d Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Mon, 10 Sep 2007 06:33:47 +0000 Subject: Purged fill type enum (bzr r3706) --- src/tweak-context.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/tweak-context.cpp') 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) { -- cgit v1.2.3