summaryrefslogtreecommitdiffstats
path: root/src/tweak-context.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-04-03 03:25:05 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-04-03 03:25:05 +0000
commit331723c687c97a0a6d886a80b0bd2f5d7dbfb953 (patch)
treef0c53a4086257c7bd672d2167ff32470a8446d84 /src/tweak-context.cpp
parentFix spray tool (diff)
downloadinkscape-331723c687c97a0a6d886a80b0bd2f5d7dbfb953.tar.gz
inkscape-331723c687c97a0a6d886a80b0bd2f5d7dbfb953.zip
Fix tweak and paint bucket tools
(bzr r9281.1.6)
Diffstat (limited to 'src/tweak-context.cpp')
-rw-r--r--src/tweak-context.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tweak-context.cpp b/src/tweak-context.cpp
index 13299b5a4..a34a61f53 100644
--- a/src/tweak-context.cpp
+++ b/src/tweak-context.cpp
@@ -448,7 +448,7 @@ sp_tweak_dilate_recursive (Inkscape::Selection *selection, SPItem *item, Geom::P
if (a->contains(p)) x = 0;
if (x < 1) {
Geom::Point move = force * 0.5 * (cos(M_PI * x) + 1) * vector;
- sp_item_move_rel(item, Geom::Translate(move[Geom::X], -move[Geom::Y]));
+ sp_item_move_rel(item, Geom::Translate(move[Geom::X], move[Geom::Y]));
did = true;
}
}
@@ -462,7 +462,7 @@ sp_tweak_dilate_recursive (Inkscape::Selection *selection, SPItem *item, Geom::P
if (x < 1) {
Geom::Point move = force * 0.5 * (cos(M_PI * x) + 1) *
(reverse? (a->midpoint() - p) : (p - a->midpoint()));
- sp_item_move_rel(item, Geom::Translate(move[Geom::X], -move[Geom::Y]));
+ sp_item_move_rel(item, Geom::Translate(move[Geom::X], move[Geom::Y]));
did = true;
}
}
@@ -477,7 +477,7 @@ sp_tweak_dilate_recursive (Inkscape::Selection *selection, SPItem *item, Geom::P
if (a->contains(p)) x = 0;
if (x < 1) {
Geom::Point move = force * 0.5 * (cos(M_PI * x) + 1) * Geom::Point(cos(dp)*dr, sin(dp)*dr);
- sp_item_move_rel(item, Geom::Translate(move[Geom::X], -move[Geom::Y]));
+ sp_item_move_rel(item, Geom::Translate(move[Geom::X], move[Geom::Y]));
did = true;
}
}
@@ -502,7 +502,7 @@ sp_tweak_dilate_recursive (Inkscape::Selection *selection, SPItem *item, Geom::P
double x = Geom::L2(a->midpoint() - p)/radius;
if (a->contains(p)) x = 0;
if (x < 1) {
- double angle = (reverse? force : -force) * 0.05 * (cos(M_PI * x) + 1) * M_PI;
+ double angle = (reverse? -force : force) * 0.05 * (cos(M_PI * x) + 1) * M_PI;
sp_item_rotate_rel(item, Geom::Rotate(angle));
did = true;
}