summaryrefslogtreecommitdiffstats
path: root/src/gradient-drag.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-10-06 23:01:37 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-10-06 23:01:37 +0000
commit068f7cff1cafc85dc042852bf2c7343920b7312d (patch)
tree983fc148347da771cf2167c885794d4b26bf6fcc /src/gradient-drag.cpp
parentimplement ins to create new stops (diff)
downloadinkscape-068f7cff1cafc85dc042852bf2c7343920b7312d.tar.gz
inkscape-068f7cff1cafc85dc042852bf2c7343920b7312d.zip
fix dragging when center and radius are both selected
(bzr r3844)
Diffstat (limited to 'src/gradient-drag.cpp')
-rw-r--r--src/gradient-drag.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index 39838ae48..4a83716ff 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -1545,14 +1545,14 @@ GrDrag::selected_move (double x, double y, bool write_repr, bool scale_radial)
// Moving an rg center moves its focus and radii as well.
// therefore, if this is a focus or radius and if selection
// contains the center as well, do not move this one
- bool skip_radius_with_center = false;
if (d->isA(POINT_RG_R1) || d->isA(POINT_RG_R2) ||
(d->isA(POINT_RG_FOCUS) && !d->isA(POINT_RG_CENTER))) {
+ bool skip_radius_with_center = false;
for (GList *di = selected; di != NULL; di = di->next) {
GrDragger *d_new = (GrDragger *) di->data;
if (d_new->isA (((GrDraggable *) d->draggables->data)->item,
POINT_RG_CENTER,
- ((GrDraggable *) d->draggables->data)->point_i,
+ 0,
((GrDraggable *) d->draggables->data)->fill_or_stroke)) {
// FIXME: here we take into account only the first draggable!
skip_radius_with_center = true;