cab6443a92
Copy from GNOME:Apps/inkscape based on submit request 47084 from user vuntz OBS-URL: https://build.opensuse.org/request/show/47084 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/inkscape?expand=0&rev=37
17 lines
684 B
Diff
17 lines
684 B
Diff
=== modified file 'src/ui/tool/path-manipulator.cpp'
|
|
--- src/ui/tool/path-manipulator.cpp 2010-04-06 14:11:54 +0000
|
|
+++ src/ui/tool/path-manipulator.cpp 2010-08-13 21:10:23 +0000
|
|
@@ -1414,7 +1414,10 @@
|
|
NodeList::iterator first = (*spi)->before(pvp->t, &fracpart);
|
|
|
|
double stroke_tolerance = _getStrokeTolerance();
|
|
- if (Geom::distance(evp, nearest_point) < stroke_tolerance) {
|
|
+ if (first && first.next() &&
|
|
+ fracpart != 0.0 &&
|
|
+ Geom::distance(evp, nearest_point) < stroke_tolerance)
|
|
+ {
|
|
_dragpoint->setVisible(true);
|
|
_dragpoint->setPosition(_desktop->w2d(nearest_point));
|
|
_dragpoint->setSize(2 * stroke_tolerance);
|
|
|