summaryrefslogtreecommitdiffstats
path: root/src/gradient-drag.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-02-07 01:22:44 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-02-07 01:22:44 +0000
commita19670da5137c1403f53f4a9725248acc8459950 (patch)
tree3e9b5c0d622a5bd94a7baddaa795a75d01600f03 /src/gradient-drag.cpp
parentFix performance regressions in the node tool and a stupid crash bug (diff)
downloadinkscape-a19670da5137c1403f53f4a9725248acc8459950.tar.gz
inkscape-a19670da5137c1403f53f4a9725248acc8459950.zip
Fix path transformation (LP bug #515237)
Fixed bugs: - https://launchpad.net/bugs/515237 (bzr r9062)
Diffstat (limited to 'src/gradient-drag.cpp')
-rw-r--r--src/gradient-drag.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index 5facfefd0..5be435a64 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -1154,7 +1154,10 @@ Moves this dragger to the point of the given draggable, acting upon all other dr
void
GrDragger::moveThisToDraggable (SPItem *item, gint point_type, gint point_i, bool fill_or_stroke, bool write_repr)
{
- this->point = sp_item_gradient_get_coords (item, point_type, point_i, fill_or_stroke);
+ GrDraggable *dr_first = (GrDraggable *) this->draggables->data;
+ if (!dr_first) return;
+
+ this->point = sp_item_gradient_get_coords (dr_first->item, dr_first->point_type, dr_first->point_i, dr_first->fill_or_stroke);
this->point_original = this->point;
sp_knot_moveto (this->knot, this->point);