summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 79cde0e)
raw | patch | inline | side by side (parent: 79cde0e)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 7 Sep 2008 19:51:59 +0000 (19:51 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 7 Sep 2008 19:51:59 +0000 (19:51 +0000) |
src/shape-editor.cpp | patch | blob | history |
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp
index 798e0181708fd7d0c022ecc498db1344473fb557..f7aefdabec85566f038a04c5738b3bb03910fe4b 100644 (file)
--- a/src/shape-editor.cpp
+++ b/src/shape-editor.cpp
#include "style.h"
#include "display/curve.h"
#include <2geom/pathvector.h>
-#include "sp-shape.h"
#include "shape-editor.h"
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);