From 0a6ac2678a82deabcaf96cfd2f8d252f26a7711e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 25 Sep 2023 20:01:21 -0600 Subject: [PATCH] canvas: if LineSet does the 0.5 pixel shift, make it the right direction --- libs/canvas/line_set.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/canvas/line_set.cc b/libs/canvas/line_set.cc index 2dcf464950..f35cfd880d 100644 --- a/libs/canvas/line_set.cc +++ b/libs/canvas/line_set.cc @@ -106,12 +106,12 @@ LineSet::render (Rect const & area, Cairo::RefPtr context) const if (_orientation == Horizontal) { self = Rect (0, l.pos - (l.width/2.0), _extent, l.pos + (l.width/2.0)); if (fmod (l.width, 2.)) { - self.y0 -= shift; + self.y0 += shift; } } else { self = Rect (l.pos - (l.width/2.0), 0, l.pos + (l.width/2.0), _extent); if (fmod (l.width, 2.)) { - self.x0 -= shift; + self.x0 += shift; } }