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/connector-context.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/connector-context.cpp') diff --git a/src/connector-context.cpp b/src/connector-context.cpp index 8e8c4b066..c982a8c89 100644 --- a/src/connector-context.cpp +++ b/src/connector-context.cpp @@ -1170,10 +1170,10 @@ cc_set_active_conn(SPConnectorContext *cc, SPItem *item) if (cc->active_conn == item) { // Just adjust handle positions. - Geom::Point startpt = curve->first_point() * i2d; + Geom::Point startpt = *(curve->first_point()) * i2d; sp_knot_set_position(cc->endpt_handle[0], startpt, 0); - Geom::Point endpt = curve->last_point() * i2d; + Geom::Point endpt = *(curve->last_point()) * i2d; sp_knot_set_position(cc->endpt_handle[1], endpt, 0); return; @@ -1237,10 +1237,10 @@ cc_set_active_conn(SPConnectorContext *cc, SPItem *item) G_CALLBACK(endpt_handler), cc); } - Geom::Point startpt = curve->first_point() * i2d; + Geom::Point startpt = *(curve->first_point()) * i2d; sp_knot_set_position(cc->endpt_handle[0], startpt, 0); - Geom::Point endpt = curve->last_point() * i2d; + Geom::Point endpt = *(curve->last_point()) * i2d; sp_knot_set_position(cc->endpt_handle[1], endpt, 0); sp_knot_show(cc->endpt_handle[0]); -- cgit v1.2.3