From 94c045f15fc34988fda2e20c7d9fd2631a131e6e Mon Sep 17 00:00:00 2001 From: buliabyak Date: Fri, 12 Oct 2007 07:15:34 +0000 Subject: [PATCH] fix error in structure, typo --- src/gradient-drag.cpp | 15 +++++++-------- 1 file 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 -- 2.30.2