summaryrefslogtreecommitdiffstats
path: root/src/gradient-drag.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2014-03-23 13:41:29 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2014-03-23 13:41:29 +0000
commit049186720d57e2b2dce66a8bfd1efe29a797de44 (patch)
tree410f45519a46b4db81727371fd0c35c90a36cd46 /src/gradient-drag.cpp
parentlibuemf: more self-assignment -> unused changes (diff)
downloadinkscape-049186720d57e2b2dce66a8bfd1efe29a797de44.tar.gz
inkscape-049186720d57e2b2dce66a8bfd1efe29a797de44.zip
gradient midpoint dragging: fix terrible bug in the code (don't know it's phenotype)
(bzr r13186)
Diffstat (limited to 'src/gradient-drag.cpp')
-rw-r--r--src/gradient-drag.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index 6773069de..8a0d7ee26 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -2387,7 +2387,7 @@ void GrDrag::selected_move(double x, double y, bool write_repr, bool scale_radia
gr_midpoint_limits(dragger, server, &begin, &end, &low_lim, &high_lim, &moving);
Geom::LineSegment ls(low_lim, high_lim);
- Geom::Point p = ls.pointAt(ls.nearestPoint(dragger->point + p));
+ Geom::Point p = ls.pointAt(ls.nearestPoint(dragger->point + Geom::Point(x,y)));
Geom::Point displacement = p - dragger->point;
for (GSList const* i = moving; i != NULL; i = i->next) {