diff options
| author | Martin Owens <doctormo@gmail.com> | 2018-10-04 13:00:31 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2018-10-05 22:03:39 +0000 |
| commit | 93bd83b73e292ef37d8c4f03e5a9185f870bb0df (patch) | |
| tree | 8ab42f5a785a01fbe4d700613f655372f26d10b6 /src/ui/tools/tweak-tool.cpp | |
| parent | fix 1795942 "object to path" uses outdated state (diff) | |
| download | inkscape-93bd83b73e292ef37d8c4f03e5a9185f870bb0df.tar.gz inkscape-93bd83b73e292ef37d8c4f03e5a9185f870bb0df.zip | |
Removal of code but breaks gradients
Diffstat (limited to 'src/ui/tools/tweak-tool.cpp')
| -rw-r--r-- | src/ui/tools/tweak-tool.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/tools/tweak-tool.cpp b/src/ui/tools/tweak-tool.cpp index 4a4bf6114..4f5834836 100644 --- a/src/ui/tools/tweak-tool.cpp +++ b/src/ui/tools/tweak-tool.cpp @@ -837,10 +837,10 @@ static void tweak_colors_in_gradient(SPItem *item, Inkscape::PaintTarget fill_or // so it only affects the ends of this interstop; // distribute the force between the two endstops so that they // get all the painting even if they are not touched by the brush - tweak_color (mode, stop->specified_color.v.c, rgb_goal, + tweak_color (mode, stop->getColor().v.c, rgb_goal, force * (pos_e - offset_l) / (offset_h - offset_l), do_h, do_s, do_l); - tweak_color(mode, prevStop->specified_color.v.c, rgb_goal, + tweak_color(mode, prevStop->getColor().v.c, rgb_goal, force * (offset_h - pos_e) / (offset_h - offset_l), do_h, do_s, do_l); stop->updateRepr(); @@ -850,14 +850,14 @@ static void tweak_colors_in_gradient(SPItem *item, Inkscape::PaintTarget fill_or // wide brush, may affect more than 2 stops, // paint each stop by the force from the profile curve if (offset_l <= pos_e && offset_l > pos_e - r) { - tweak_color(mode, prevStop->specified_color.v.c, rgb_goal, + tweak_color(mode, prevStop->getColor().v.c, rgb_goal, force * tweak_profile (fabs (pos_e - offset_l), r), do_h, do_s, do_l); child_prev->updateRepr(); } if (offset_h >= pos_e && offset_h < pos_e + r) { - tweak_color (mode, stop->specified_color.v.c, rgb_goal, + tweak_color (mode, stop->getColor().v.c, rgb_goal, force * tweak_profile (fabs (pos_e - offset_h), r), do_h, do_s, do_l); stop->updateRepr(); @@ -879,7 +879,7 @@ static void tweak_colors_in_gradient(SPItem *item, Inkscape::PaintTarget fill_or for( unsigned j=0; j < array->nodes[i].size(); j+=3 ) { SPStop *stop = array->nodes[i][j]->stop; double distance = Geom::L2(Geom::Point(p - array->nodes[i][j]->p)); - tweak_color (mode, stop->specified_color.v.c, rgb_goal, + tweak_color (mode, stop->getColor().v.c, rgb_goal, force * tweak_profile (distance, radius), do_h, do_s, do_l); stop->updateRepr(); } |
