diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-11-29 02:05:42 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-11-29 02:05:42 +0000 |
| commit | acd4efd92b7dec9df2dbaa35014ca225b4877b7f (patch) | |
| tree | 3c02c0fa7136686feadd4ba4266ac614ff48082d /src/gradient-drag.cpp | |
| parent | Fix Bug #172582 crash when dragging line with mouse (diff) | |
| download | inkscape-acd4efd92b7dec9df2dbaa35014ca225b4877b7f.tar.gz inkscape-acd4efd92b7dec9df2dbaa35014ca225b4877b7f.zip | |
make the alt-drag profile symmetric
(bzr r4143)
Diffstat (limited to 'src/gradient-drag.cpp')
| -rw-r--r-- | src/gradient-drag.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp index 3f51b0824..11cc3cf3b 100644 --- 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; |
