summaryrefslogtreecommitdiffstats
path: root/src/connector-context.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-08-01 17:45:13 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-08-01 17:45:13 +0000
commit55788b44d28d38dfd0165a87c8d61c265eab4557 (patch)
tree70cd1d51735400d3aaccfc03cee2f07af9f51d88 /src/connector-context.cpp
parentsimplify code (diff)
downloadinkscape-55788b44d28d38dfd0165a87c8d61c265eab4557.tar.gz
inkscape-55788b44d28d38dfd0165a87c8d61c265eab4557.zip
change knot.h to Geom::Point only instead of NR::Point.
(bzr r6511)
Diffstat (limited to 'src/connector-context.cpp')
-rw-r--r--src/connector-context.cpp10
1 files changed, 5 insertions, 5 deletions
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<NR::Rect> bbox = sp_item_bbox_desktop(cc->active_shape);
if (bbox) {
NR::Point center = bbox->midpoint();
- sp_knot_set_position(cc->connpthandle, &center, 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]);