summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5b663f9)
raw | patch | inline | side by side (parent: 5b663f9)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 29 Nov 2007 02:05:42 +0000 (02:05 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 29 Nov 2007 02:05:42 +0000 (02:05 +0000) |
src/gradient-drag.cpp | patch | blob | history |
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index 3f51b0824b5b5ca0bc5dfcd8f896d4598639acf8..11cc3cf3b036673a4ef2a7d9c5132a3870c14465 100644 (file)
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -836,7 +836,7 @@ gr_knot_moved_midpoint_handler(SPKnot */*knot*/, NR::Point const *ppointer, guin
NR::Point this_move = displacement;
if (state & GDK_MOD1_MASK) {
// FIXME: unify all these profiles (here, in nodepath, in tweak) in one place
- double alpha = 1.5;
+ double alpha = 1.0;
if (NR::L2(drg->point - dragger->point) + NR::L2(drg->point - begin) - 1e-3 > NR::L2(dragger->point - begin)) { // drg is on the end side from dragger
double x = NR::L2(drg->point - dragger->point)/NR::L2(end - dragger->point);
this_move = (0.5 * cos (M_PI * (pow(x, alpha))) + 0.5) * this_move;