From 55788b44d28d38dfd0165a87c8d61c265eab4557 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 1 Aug 2008 17:45:13 +0000 Subject: change knot.h to Geom::Point only instead of NR::Point. (bzr r6511) --- src/connector-context.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/connector-context.cpp') diff --git a/src/connector-context.cpp b/src/connector-context.cpp index 3d109a69c..1a77008f1 100644 --- a/src/connector-context.cpp +++ b/src/connector-context.cpp @@ -1151,7 +1151,7 @@ static void cc_set_active_shape(SPConnectorContext *cc, SPItem *item) NR::Maybe bbox = sp_item_bbox_desktop(cc->active_shape); if (bbox) { NR::Point center = bbox->midpoint(); - sp_knot_set_position(cc->connpthandle, ¢er, 0); + sp_knot_set_position(cc->connpthandle, center, 0); sp_knot_show(cc->connpthandle); } else { sp_knot_hide(cc->connpthandle); @@ -1171,10 +1171,10 @@ cc_set_active_conn(SPConnectorContext *cc, SPItem *item) { // Just adjust handle positions. NR::Point startpt = curve->first_point() * i2d; - sp_knot_set_position(cc->endpt_handle[0], &startpt, 0); + sp_knot_set_position(cc->endpt_handle[0], startpt, 0); NR::Point endpt = curve->last_point() * i2d; - sp_knot_set_position(cc->endpt_handle[1], &endpt, 0); + sp_knot_set_position(cc->endpt_handle[1], endpt, 0); return; } @@ -1238,10 +1238,10 @@ cc_set_active_conn(SPConnectorContext *cc, SPItem *item) } NR::Point startpt = curve->first_point() * i2d; - sp_knot_set_position(cc->endpt_handle[0], &startpt, 0); + sp_knot_set_position(cc->endpt_handle[0], startpt, 0); NR::Point endpt = curve->last_point() * i2d; - sp_knot_set_position(cc->endpt_handle[1], &endpt, 0); + sp_knot_set_position(cc->endpt_handle[1], endpt, 0); sp_knot_show(cc->endpt_handle[0]); sp_knot_show(cc->endpt_handle[1]); -- cgit v1.2.3