summaryrefslogtreecommitdiffstats
path: root/src/draw-context.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-08-13 19:06:18 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-08-13 19:06:18 +0000
commit9c33efba40912d582a4844e4e82a72c13c8c4887 (patch)
tree0375f8c5f56a9ce8d03bc483ab0c14d223d6f39e /src/draw-context.cpp
parentreturn boost::optional for second and penultimate points of SPCurve (diff)
downloadinkscape-9c33efba40912d582a4844e4e82a72c13c8c4887.tar.gz
inkscape-9c33efba40912d582a4844e4e82a72c13c8c4887.zip
make spcurve::first_point and last_point boost::optional
(bzr r6617)
Diffstat (limited to 'src/draw-context.cpp')
-rw-r--r--src/draw-context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index 97fcb7be6..6f5d3e4e6 100644
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
@@ -440,9 +440,9 @@ spdc_attach_selection(SPDrawContext *dc, Inkscape::Selection */*sel*/)
g_return_if_fail( c->get_segment_count() > 0 );
if ( !c->is_closed() ) {
SPDrawAnchor *a;
- a = sp_draw_anchor_new(dc, c, TRUE, c->first_point());
+ a = sp_draw_anchor_new(dc, c, TRUE, *(c->first_point()));
dc->white_anchors = g_slist_prepend(dc->white_anchors, a);
- a = sp_draw_anchor_new(dc, c, FALSE, c->last_point());
+ a = sp_draw_anchor_new(dc, c, FALSE, *(c->last_point()));
dc->white_anchors = g_slist_prepend(dc->white_anchors, a);
}
}