From 9c33efba40912d582a4844e4e82a72c13c8c4887 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Wed, 13 Aug 2008 19:06:18 +0000 Subject: make spcurve::first_point and last_point boost::optional (bzr r6617) --- src/sp-conn-end.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp-conn-end.cpp') diff --git a/src/sp-conn-end.cpp b/src/sp-conn-end.cpp index 947a88d71..f529d6d62 100644 --- a/src/sp-conn-end.cpp +++ b/src/sp-conn-end.cpp @@ -101,12 +101,12 @@ sp_conn_end_move_compensate(NR::Matrix const */*mp*/, SPItem */*moved_item*/, NR::Point other_endpt; NR::Point last_seg_pt; if (h2attItem[0] != NULL) { - other_endpt = path->curve->last_point(); + other_endpt = *(path->curve->last_point()); last_seg_pt = *(path->curve->second_point()); ind = 0; } else { - other_endpt = path->curve->first_point(); + other_endpt = *(path->curve->first_point()); last_seg_pt = *(path->curve->penultimate_point()); ind = 1; } -- cgit v1.2.3