diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-03-08 17:22:17 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-03-08 17:22:17 +0000 |
| commit | a4cb221510bd537dd894b307c15b4bad3846b0b5 (patch) | |
| tree | b1ff7bf7bc514fcc1e292eca064f9c6789cac1a4 /src/gradient-chemistry.cpp | |
| parent | Fixed bug due to adding of new pointtype at the start of the enum which corru... (diff) | |
| download | inkscape-a4cb221510bd537dd894b307c15b4bad3846b0b5.tar.gz inkscape-a4cb221510bd537dd894b307c15b4bad3846b0b5.zip | |
Fixed interactive updating.
(bzr r2573)
Diffstat (limited to 'src/gradient-chemistry.cpp')
| -rw-r--r-- | src/gradient-chemistry.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp index 98329019e..82a88faa3 100644 --- a/src/gradient-chemistry.cpp +++ b/src/gradient-chemistry.cpp @@ -799,7 +799,7 @@ 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)); SPGradient *vector = sp_gradient_get_vector (lg, false); - vector->vector.stops.at(point_i).offset = offset; + lg->vector.stops.at(point_i).offset = offset; SPStop* stopi = sp_get_stop_i(vector, point_i); stopi->offset = offset; if (write_repr) { @@ -885,15 +885,15 @@ sp_item_gradient_set_coords (SPItem *item, guint point_type, guint point_i, NR:: new_transform = gradient->gradientTransform * i2d * move * i2d.inverse(); transform_set = true; - break; - } + break; + } case POINT_RG_MID1: - { + { 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); SPGradient *vector = sp_gradient_get_vector (rg, false); - vector->vector.stops.at(point_i).offset = offset; + rg->vector.stops.at(point_i).offset = offset; SPStop* stopi = sp_get_stop_i(vector, point_i); stopi->offset = offset; if (write_repr) { @@ -901,14 +901,14 @@ sp_item_gradient_set_coords (SPItem *item, guint point_type, guint point_i, NR:: } else { SP_OBJECT (gradient)->requestModified(SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG); } - break; - } + break; + } case POINT_RG_MID2: 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); SPGradient *vector = sp_gradient_get_vector (rg, false); - vector->vector.stops.at(point_i).offset = offset; + rg->vector.stops.at(point_i).offset = offset; SPStop* stopi = sp_get_stop_i(vector, point_i); stopi->offset = offset; if (write_repr) { @@ -916,7 +916,7 @@ sp_item_gradient_set_coords (SPItem *item, guint point_type, guint point_i, NR:: } else { SP_OBJECT (gradient)->requestModified(SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG); } - break; + break; } if (transform_set) { gradient->gradientTransform = new_transform; |
