summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-spiro.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/live_effects/lpe-spiro.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/live_effects/lpe-spiro.cpp')
-rw-r--r--src/live_effects/lpe-spiro.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live_effects/lpe-spiro.cpp b/src/live_effects/lpe-spiro.cpp
index 44ba32e4d..dd6c5a90a 100644
--- a/src/live_effects/lpe-spiro.cpp
+++ b/src/live_effects/lpe-spiro.cpp
@@ -51,7 +51,7 @@ void bezctx_ink_quadto(bezctx *bc, double xm, double ym, double x3, double y3)
double x1, y1;
double x2, y2;
- Geom::Point last = bi->curve->last_point();
+ Geom::Point last = *(bi->curve->last_point());
x0 = last[Geom::X];
y0 = last[Geom::Y];
x1 = xm + (1./3) * (x0 - xm);