summaryrefslogtreecommitdiffstats
path: root/src/spray-context.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-04-03 17:07:50 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-04-03 17:07:50 +0000
commit02da648c4667a300a9727ee44c11a4349bb2bb98 (patch)
tree16ef336cc6e8a15cf645f77d7c441a045e63671b /src/spray-context.cpp
parentA few small fixes/clarifications for Gaussian blur. (diff)
parentFix grid extension (diff)
downloadinkscape-02da648c4667a300a9727ee44c11a4349bb2bb98.tar.gz
inkscape-02da648c4667a300a9727ee44c11a4349bb2bb98.zip
Change desktop coordinate system to match SVG (LP #170049)
Fixed bugs: - https://launchpad.net/bugs/170049 (bzr r9288)
Diffstat (limited to 'src/spray-context.cpp')
-rw-r--r--src/spray-context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/spray-context.cpp b/src/spray-context.cpp
index 2bdac197f..9b9caee15 100644
--- a/src/spray-context.cpp
+++ b/src/spray-context.cpp
@@ -501,7 +501,7 @@ bool sp_spray_recursive(SPDesktop *desktop,
sp_spray_rotate_rel(center,desktop,item_copied, Geom::Rotate(angle));
//Move the cursor p
Geom::Point move = (Geom::Point(cos(tilt)*cos(dp)*dr/(1-ratio)+sin(tilt)*sin(dp)*dr/(1+ratio),-sin(tilt)*cos(dp)*dr/(1-ratio)+cos(tilt)*sin(dp)*dr/(1+ratio)))+(p-a->midpoint());
- sp_item_move_rel(item_copied, Geom::Translate(move[Geom::X], -move[Geom::Y]));
+ sp_item_move_rel(item_copied, Geom::Translate(move[Geom::X], move[Geom::Y]));
did = true;
}
}
@@ -556,7 +556,7 @@ bool sp_spray_recursive(SPDesktop *desktop,
sp_spray_scale_rel(center,desktop,item_copied, Geom::Scale(_scale,_scale));
sp_spray_scale_rel(center,desktop,item_copied, Geom::Scale(scale,scale));
sp_spray_rotate_rel(center,desktop,item_copied, Geom::Rotate(angle));
- sp_item_move_rel(item_copied, Geom::Translate(move[Geom::X], -move[Geom::Y]));
+ sp_item_move_rel(item_copied, Geom::Translate(move[Geom::X], move[Geom::Y]));
// union and duplication
selection->clear();
@@ -593,7 +593,7 @@ bool sp_spray_recursive(SPDesktop *desktop,
sp_spray_scale_rel(center,desktop,item_copied, Geom::Scale(scale,scale));
sp_spray_rotate_rel(center,desktop,item_copied, Geom::Rotate(angle));
Geom::Point move = (Geom::Point(cos(tilt)*cos(dp)*dr/(1-ratio)+sin(tilt)*sin(dp)*dr/(1+ratio),-sin(tilt)*cos(dp)*dr/(1-ratio)+cos(tilt)*sin(dp)*dr/(1+ratio)))+(p-a->midpoint());
- sp_item_move_rel(item_copied, Geom::Translate(move[Geom::X], -move[Geom::Y]));
+ sp_item_move_rel(item_copied, Geom::Translate(move[Geom::X], move[Geom::Y]));
Inkscape::GC::release(clone);