diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-08-13 19:06:18 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-08-13 19:06:18 +0000 |
| commit | 9c33efba40912d582a4844e4e82a72c13c8c4887 (patch) | |
| tree | 0375f8c5f56a9ce8d03bc483ab0c14d223d6f39e /src/connector-context.cpp | |
| parent | return boost::optional for second and penultimate points of SPCurve (diff) | |
| download | inkscape-9c33efba40912d582a4844e4e82a72c13c8c4887.tar.gz inkscape-9c33efba40912d582a4844e4e82a72c13c8c4887.zip | |
make spcurve::first_point and last_point boost::optional
(bzr r6617)
Diffstat (limited to 'src/connector-context.cpp')
| -rw-r--r-- | src/connector-context.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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]); |
