summaryrefslogtreecommitdiffstats
path: root/src/sp-conn-end-pair.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2012-01-17 18:54:58 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2012-01-17 18:54:58 +0000
commit9987e96d0f03421344ad50447a877d57058e0df5 (patch)
tree3da0d794c798977a50770ef8f914c17aa780b3b9 /src/sp-conn-end-pair.cpp
parentproper forward decl (diff)
downloadinkscape-9987e96d0f03421344ad50447a877d57058e0df5.tar.gz
inkscape-9987e96d0f03421344ad50447a877d57058e0df5.zip
part 1 of SPPath cleanup for LPE... remove duplicated original_curve in SPPath (SPShape has curve_before_lpe)
(bzr r10895)
Diffstat (limited to 'src/sp-conn-end-pair.cpp')
-rw-r--r--src/sp-conn-end-pair.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-conn-end-pair.cpp b/src/sp-conn-end-pair.cpp
index 00b9ab0e9..fa01dc2d8 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 *curve = _path->original_curve ? _path->original_curve : _path->curve;
+ SPCurve const *curve = sp_path_get_curve_reference(_path);
SPItem *h2attItem[2] = {0};
getAttachedItems(h2attItem);
Geom::Affine i2d = _path->i2doc_affine();
@@ -403,7 +403,7 @@ SPConnEndPair::reroutePathFromLibavoid(void)
return false;
}
- SPCurve *curve = _path->original_curve ?_path->original_curve : _path->curve;
+ SPCurve *curve = sp_path_get_curve(_path);
recreateCurve( curve, _connRef, _connCurvature );