diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-10 17:48:07 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-10 18:06:41 +0200 |
commit | 7bb8ca1e76986d1b6075627679fe37c143a44ab5 (patch) | |
tree | dc2a5c4ddc9278e257840593319df41990c5c8e1 /libs/canvas/poly_line.cc | |
parent | 6cc1e5e75d63a42d37b1b98abd253f61b56e042b (diff) |
Interpolate poly-line with view-point #6481
Diffstat (limited to 'libs/canvas/poly_line.cc')
-rw-r--r-- | libs/canvas/poly_line.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/canvas/poly_line.cc b/libs/canvas/poly_line.cc index ad14dbdd1d..7ef8e4a5aa 100644 --- a/libs/canvas/poly_line.cc +++ b/libs/canvas/poly_line.cc @@ -71,8 +71,8 @@ PolyLine::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) cons Duple y (0, _y1); float y1 = item_to_window (y).y; render_path (area, context); - Duple c0 (item_to_window (_points.back())); - Duple c1 (item_to_window (_points.front())); + Duple const& c0 (rightedge ()); + Duple const& c1 (leftedge ()); if (c0.x < vp.x1) { context->line_to (vp.x1, c0.y); context->line_to (vp.x1, y1); |