summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ca075f6)
raw | patch | inline | side by side (parent: ca075f6)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 29 Jun 2008 13:50:12 +0000 (13:50 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 29 Jun 2008 13:50:12 +0000 (13:50 +0000) |
src/display/curve.cpp | patch | blob | history | |
src/display/curve.h | patch | blob | history |
diff --git a/src/display/curve.cpp b/src/display/curve.cpp
index 065365973cdb66a2a1598b06745aa04345e95167..e80b668d6acd79b05c3f0f6ffd8c5cf917416656 100644 (file)
--- a/src/display/curve.cpp
+++ b/src/display/curve.cpp
return &_pathv.back();
}
-/**
- * Return first subpath or NULL.
- */
-NArtBpath const *
-SPCurve::first_bpath() const
-{
- g_return_val_if_fail(this != NULL, NULL);
-
- if (_end == 0) {
- return NULL;
- }
-
- return _bpath;
-}
-
/**
* Return first pathsegment in PathVector or NULL.
* equal in functionality to SPCurve::first_bpath()
NR::Point
SPCurve::first_point() const
{
- NArtBpath const * bpath = first_bpath();
+ NArtBpath const * bpath = get_bpath();
g_return_val_if_fail(bpath != NULL, NR::Point(0, 0));
if (is_empty())
return NR::Point(0, 0);
NArtBpath const *be = last_bpath();
if (be) {
- NArtBpath const *bs = c1->first_bpath();
+ NArtBpath const *bs = c1->get_bpath();
if ( bs
&& ( fabs( bs->x3 - be->x3 ) <= tolerance )
&& ( fabs( bs->y3 - be->y3 ) <= tolerance ) )
diff --git a/src/display/curve.h b/src/display/curve.h
index 0ac5d069e8a08d045af7266d35db895216fa9bb1..e67c3897ab302fc7936e3eb3b32d254f7c107ed8 100644 (file)
--- a/src/display/curve.h
+++ b/src/display/curve.h
NArtBpath const * last_bpath() const;
Geom::Curve const * last_segment() const;
Geom::Path const * last_path() const;
- NArtBpath const * first_bpath() const;
Geom::Curve const * first_segment() const;
Geom::Path const * first_path() const;
NR::Point first_point() const;