summaryrefslogtreecommitdiff
path: root/libs/canvas/framed_curve.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/canvas/framed_curve.cc')
-rw-r--r--libs/canvas/framed_curve.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/canvas/framed_curve.cc b/libs/canvas/framed_curve.cc
index d5bb23f4e7..d8ba2e92c0 100644
--- a/libs/canvas/framed_curve.cc
+++ b/libs/canvas/framed_curve.cc
@@ -194,16 +194,15 @@ FramedCurve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) c
case Outside:
context->stroke_preserve ();
window_space = item_to_window (Duple(_points.back().x, 0.0));
- context->line_to (window_space.x, window_space.y);
+ context->line_to (last_point.x, window_space.y);
window_space = item_to_window (Duple(_points.front().x, 0.0));
- context->line_to (window_space.x, window_space.y);
+ context->line_to (first_point.x, window_space.y);
context->close_path();
setup_fill_context(context);
context->fill ();
break;
}
} else {
-
/* curve of at least 3 points */
/* find left and right-most sample */