From 4e88ff8cf095fe9c51577dfabbdf971b6ba78643 Mon Sep 17 00:00:00 2001 From: twanvl Date: Tue, 13 Feb 2007 22:23:41 +0000 Subject: [PATCH] fixed RemoveControlPointAction git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@206 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/data/action/symbol_part.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data/action/symbol_part.cpp b/src/data/action/symbol_part.cpp index cf7f7ebc..56368029 100644 --- a/src/data/action/symbol_part.cpp +++ b/src/data/action/symbol_part.cpp @@ -262,7 +262,7 @@ class SinglePointRemoveAction : public Action { SinglePointRemoveAction::SinglePointRemoveAction(const SymbolPartP& part, UInt position) : part(part) , position(position) - , point (part->getPoint(position - 1)) + , point (part->getPoint(position)) , point1(part->getPoint(position - 1)) , point2(part->getPoint(position + 1)) { @@ -273,13 +273,13 @@ SinglePointRemoveAction::SinglePointRemoveAction(const SymbolPartP& part, UInt p // convert both segments to curves first if (point1.other.segment_after != SEGMENT_CURVE) { - point1.other.delta_after = - before = (point1.other.pos - point->pos) / 3.0; + point1.other.delta_after = -before; point1.other.segment_after = SEGMENT_CURVE; } if (point2.other.segment_before != SEGMENT_CURVE) { - point2.other.delta_before = - - after = (point2.other.pos - point->pos) / 3.0; + after = (point2.other.pos - point->pos) / 3.0; + point2.other.delta_before = -after; point2.other.segment_before = SEGMENT_CURVE; }