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/sp-conn-end.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/sp-conn-end.cpp')
| -rw-r--r-- | src/sp-conn-end.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
