diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-10-12 07:15:34 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-10-12 07:15:34 +0000 |
| commit | f3144450ae2d726ae2d3a60818b8cdfe493dfc0c (patch) | |
| tree | b8518f4203d6d262f8d40ee43213e8d82bd41d09 | |
| parent | Shift+drag to select within rect (diff) | |
| download | inkscape-f3144450ae2d726ae2d3a60818b8cdfe493dfc0c.tar.gz inkscape-f3144450ae2d726ae2d3a60818b8cdfe493dfc0c.zip | |
fix error in structure, typo
(bzr r3895)
| -rw-r--r-- | src/gradient-drag.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp index 2e1a8db83..eaf714690 100644 --- a/src/gradient-drag.cpp +++ b/src/gradient-drag.cpp @@ -1606,7 +1606,7 @@ GrDrag::selected_move (double x, double y, bool write_repr, bool scale_radial) GrDragger *d = (GrDragger *) i->data; if (!d->isA(POINT_LG_MID) && !d->isA(POINT_RG_MID1) && !d->isA(POINT_RG_MID2)) { - // if this is a an endpoint, + // if this is an endpoint, // Moving an rg center moves its focus and radii as well. // therefore, if this is a focus or radius and if selection @@ -1637,14 +1637,13 @@ GrDrag::selected_move (double x, double y, bool write_repr, bool scale_radial) d->updateDependencies(write_repr); } + } - if (write_repr && did) { - // we did an undoable action - sp_document_maybe_done (sp_desktop_document (desktop), "grmoveh", SP_VERB_CONTEXT_GRADIENT, - _("Move gradient handle(s)")); - return; - } - + if (write_repr && did) { + // we did an undoable action + sp_document_maybe_done (sp_desktop_document (desktop), "grmoveh", SP_VERB_CONTEXT_GRADIENT, + _("Move gradient handle(s)")); + return; } if (!did) { // none of the end draggers are selected, so let's try to move the mids |
