From cf7bcd2af286d205a70eb9d1ec5e4b77fb6d2f19 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Tue, 17 Jan 2012 21:25:50 +0100 Subject: turn SPPath into a class, and add some methods... (bzr r10897) --- src/sp-conn-end-pair.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp-conn-end-pair.cpp') diff --git a/src/sp-conn-end-pair.cpp b/src/sp-conn-end-pair.cpp index fa01dc2d8..17e9e7397 100644 --- a/src/sp-conn-end-pair.cpp +++ b/src/sp-conn-end-pair.cpp @@ -214,7 +214,7 @@ SPConnEndPair::getAttachedItems(SPItem *h2attItem[2]) const { void SPConnEndPair::getEndpoints(Geom::Point endPts[]) const { - SPCurve const *curve = sp_path_get_curve_reference(_path); + SPCurve const *curve = _path->get_curve_reference(); SPItem *h2attItem[2] = {0}; getAttachedItems(h2attItem); Geom::Affine i2d = _path->i2doc_affine(); @@ -403,7 +403,7 @@ SPConnEndPair::reroutePathFromLibavoid(void) return false; } - SPCurve *curve = sp_path_get_curve(_path); + SPCurve *curve = _path->get_curve(); recreateCurve( curve, _connRef, _connCurvature ); -- cgit v1.2.3