diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-10 18:01:04 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-10 18:06:42 +0200 |
commit | 2177462b73c9ab85fce0d91b63a1e082a33da7aa (patch) | |
tree | 9a59c4204a7d7ddd5a627259d1ff7305fcc0573d /libs/canvas/poly_line.cc | |
parent | bc4de874dcb23ba1862cbf7e867db3646c9a41f7 (diff) |
NO-OP: consistent function and variable naming
Diffstat (limited to 'libs/canvas/poly_line.cc')
-rw-r--r-- | libs/canvas/poly_line.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/canvas/poly_line.cc b/libs/canvas/poly_line.cc index 7ef8e4a5aa..b1953ae4b8 100644 --- a/libs/canvas/poly_line.cc +++ b/libs/canvas/poly_line.cc @@ -71,17 +71,17 @@ 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 const& c0 (rightedge ()); - Duple const& c1 (leftedge ()); - if (c0.x < vp.x1) { - context->line_to (vp.x1, c0.y); + Duple const& c0 (left_edge ()); + Duple const& c1 (right_edge ()); + if (c1.x < vp.x1) { + context->line_to (vp.x1, c1.y); context->line_to (vp.x1, y1); } else { context->line_to (vp.x1, y1); } - if (c1.x > vp.x0) { + if (c0.x > vp.x0) { context->line_to (vp.x0, y1); - context->line_to (vp.x0, c1.y); + context->line_to (vp.x0, c0.y); } else { context->line_to (vp.x0, y1); } |