summaryrefslogtreecommitdiffstats
path: root/src/gradient-chemistry.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-03-04 23:10:23 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-03-04 23:10:23 +0000
commit73b19f4e74b56b856530a3d40c4727eca9627e11 (patch)
tree2803eb317adc8c6b56fbad72c7d0c41e3d62ee19 /src/gradient-chemistry.cpp
parentWarning cleanup of unused variables (diff)
downloadinkscape-73b19f4e74b56b856530a3d40c4727eca9627e11.tar.gz
inkscape-73b19f4e74b56b856530a3d40c4727eca9627e11.zip
Probably a fix for [ 1665735 ] [ 1673205 ] [ 1667584 ]. Testing required though.
(bzr r2547)
Diffstat (limited to 'src/gradient-chemistry.cpp')
-rw-r--r--src/gradient-chemistry.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp
index c49eaab18..98329019e 100644
--- a/src/gradient-chemistry.cpp
+++ b/src/gradient-chemistry.cpp
@@ -798,8 +798,8 @@ sp_item_gradient_set_coords (SPItem *item, guint point_type, guint point_i, NR::
{
// using X-coordinates only to determine the offset, assuming p has been snapped to the vector from begin to end.
double offset = get_offset_between_points (p, NR::Point(lg->x1.computed, lg->y1.computed), NR::Point(lg->x2.computed, lg->y2.computed));
- lg->vector.stops.at(point_i).offset = offset;
SPGradient *vector = sp_gradient_get_vector (lg, false);
+ vector->vector.stops.at(point_i).offset = offset;
SPStop* stopi = sp_get_stop_i(vector, point_i);
stopi->offset = offset;
if (write_repr) {
@@ -892,8 +892,8 @@ sp_item_gradient_set_coords (SPItem *item, guint point_type, guint point_i, NR::
NR::Point start = NR::Point (rg->cx.computed, rg->cy.computed);
NR::Point end = NR::Point (rg->cx.computed + rg->r.computed, rg->cy.computed);
double offset = get_offset_between_points (p, start, end);
- rg->vector.stops.at(point_i).offset = offset;
SPGradient *vector = sp_gradient_get_vector (rg, false);
+ vector->vector.stops.at(point_i).offset = offset;
SPStop* stopi = sp_get_stop_i(vector, point_i);
stopi->offset = offset;
if (write_repr) {
@@ -907,8 +907,8 @@ sp_item_gradient_set_coords (SPItem *item, guint point_type, guint point_i, NR::
NR::Point start = NR::Point (rg->cx.computed, rg->cy.computed);
NR::Point end = NR::Point (rg->cx.computed, rg->cy.computed - rg->r.computed);
double offset = get_offset_between_points (p, start, end);
- rg->vector.stops.at(point_i).offset = offset;
SPGradient *vector = sp_gradient_get_vector (rg, false);
+ vector->vector.stops.at(point_i).offset = offset;
SPStop* stopi = sp_get_stop_i(vector, point_i);
stopi->offset = offset;
if (write_repr) {