diff options
Diffstat (limited to 'src/gradient-drag.cpp')
| -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 |
