summaryrefslogtreecommitdiffstats
path: root/src/shape-editor.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-09-07 19:51:59 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-09-07 19:51:59 +0000
commitd0d81df4aacb67faec085b97ad86c96d885724ea (patch)
treea3f5c0dc993bbf41e7689f376f02e30cb688885b /src/shape-editor.cpp
parentRemove an obsolete comment (diff)
downloadinkscape-d0d81df4aacb67faec085b97ad86c96d885724ea.tar.gz
inkscape-d0d81df4aacb67faec085b97ad86c96d885724ea.zip
fix node tool for LPEs by reverting r19694
(bzr r6776)
Diffstat (limited to 'src/shape-editor.cpp')
-rw-r--r--src/shape-editor.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp
index 798e01817..f7aefdabe 100644
--- a/src/shape-editor.cpp
+++ b/src/shape-editor.cpp
@@ -30,7 +30,6 @@
#include "style.h"
#include "display/curve.h"
#include <2geom/pathvector.h>
-#include "sp-shape.h"
#include "shape-editor.h"
@@ -365,12 +364,7 @@ bool ShapeEditor::is_over_stroke (NR::Point event_p, bool remember) {
this->curvepoint_doc = desktop->w2d(event_p);
this->curvepoint_doc *= sp_item_dt2i_affine(item);
- SPCurve *curve;
- if (SP_IS_SHAPE(item)) {
- curve = sp_shape_get_curve(SP_SHAPE(item));
- } else {
- curve = this->nodepath->curve; // not sure if np->curve is always up to date...
- }
+ SPCurve *curve = this->nodepath->curve; // not sure if np->curve is always up to date...
Geom::PathVector const &pathv = curve->get_pathvector();
Geom::PathVectorPosition pvpos = Geom::nearestPoint(pathv, this->curvepoint_doc);