diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-12-02 23:14:54 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-12-02 23:14:54 +0000 |
| commit | c17292fc068e26bbcefcc8778daa5cb07c82f065 (patch) | |
| tree | 32f34d1c96cc45518536a2b29ca6c3d674d1b094 /src/sp-shape.cpp | |
| parent | copyedit labels for clarity (diff) | |
| download | inkscape-c17292fc068e26bbcefcc8778daa5cb07c82f065.tar.gz inkscape-c17292fc068e26bbcefcc8778daa5cb07c82f065.zip | |
Fix compile. Don't #include .cpp files!
(bzr r4157)
Diffstat (limited to 'src/sp-shape.cpp')
| -rw-r--r-- | src/sp-shape.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp index 99b4977b9..a0c2249c7 100644 --- a/src/sp-shape.cpp +++ b/src/sp-shape.cpp @@ -46,7 +46,7 @@ #include "bad-uri-exception.h" #include "xml/repr.h" -#include "nodepath.cpp" // for triangle_area() +#include "util/mathfns.h" // for triangle_area() #define noSHAPE_VERBOSE @@ -1143,7 +1143,7 @@ static void sp_shape_snappoints(SPItem const *item, SnapPointsIter p) // Determine whether a node is at a smooth part of the path, by // calculating a measure for the collinearity of the handles - bool c1 = fabs (triangle_area (pos, ppos, npos)) < 1; // points are (almost) collinear + bool c1 = fabs (Inkscape::Util::triangle_area (pos, ppos, npos)) < 1; // points are (almost) collinear bool c2 = NR::L2(pos - ppos) < 1e-6 || NR::L2(pos - npos) < 1e-6; // endnode, or a node with a retracted handle if (!(c1 & !c2)) { *p = pos; // only return non-smooth nodes ("cusps") |
