summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a1796e7)
raw | patch | inline | side by side (parent: a1796e7)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Sun, 18 Mar 2007 12:01:08 +0000 (12:01 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Sun, 18 Mar 2007 12:01:08 +0000 (12:01 +0000) |
src/object-edit.cpp | patch | blob | history |
diff --git a/src/object-edit.cpp b/src/object-edit.cpp
index fefdc8791521b253b25c594f1a5033efefbe0c02..14539417b8f01b9bb3662fa1c66c00b321c184ef 100644 (file)
--- a/src/object-edit.cpp
+++ b/src/object-edit.cpp
sp_star_knot1_set(SPItem *item, NR::Point const &p, NR::Point const &origin, guint state)
{
SPStar *star = SP_STAR(item);
+
+ NR::Point const s = snap_knot_position(star, p);
- NR::Point d = p - star->center;
+ NR::Point d = s - star->center;
double arg1 = atan2(d);
double darg1 = arg1 - star->arg[0];
sp_star_knot2_set(SPItem *item, NR::Point const &p, NR::Point const &origin, guint state)
{
SPStar *star = SP_STAR(item);
+
+ NR::Point const s = snap_knot_position(star, p);
+
if (star->flatsided == false) {
- NR::Point d = p - star->center;
+ NR::Point d = s - star->center;
double arg1 = atan2(d);
double darg1 = arg1 - star->arg[1];