summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0128f07)
raw | patch | inline | side by side (parent: 0128f07)
author | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Sat, 3 Apr 2010 03:05:38 +0000 (05:05 +0200) | ||
committer | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Sat, 3 Apr 2010 03:05:38 +0000 (05:05 +0200) |
src/spray-context.cpp | patch | blob | history |
diff --git a/src/spray-context.cpp b/src/spray-context.cpp
index 2bdac197f75e749d18a7ab9541e4940deccb9f16..9b9caee150418b3e8a7725a582e8885ae57f9138 100644 (file)
--- a/src/spray-context.cpp
+++ b/src/spray-context.cpp
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;
}
}
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();
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);