summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d6f9b52)
raw | patch | inline | side by side (parent: d6f9b52)
author | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Fri, 13 Aug 2010 21:03:59 +0000 (23:03 +0200) | ||
committer | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Fri, 13 Aug 2010 21:03:59 +0000 (23:03 +0200) |
src/ui/tool/path-manipulator.cpp | patch | blob | history |
index 66f72f379ee985706ba107d7d4492da579804cee..8ce7a9e74feba0926a099231d6bcf8b03648ed06 100644 (file)
NodeList::iterator first = (*spi)->before(pvp->t, &fracpart);
double stroke_tolerance = _getStrokeTolerance();
- if (Geom::distance(evp, nearest_point) < stroke_tolerance) {
+ if (first && first.next() && Geom::distance(evp, nearest_point) < stroke_tolerance) {
_dragpoint->setVisible(true);
_dragpoint->setPosition(_desktop->w2d(nearest_point));
_dragpoint->setSize(2 * stroke_tolerance);