From 6d3bd4e53c43e49cfc860cd772907f9f2fe2eb38 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 7 Mar 2014 12:29:26 -0500 Subject: [PATCH] use fill transparency detection to avoid rendering transparent (invisible) rectangle fill area --- libs/canvas/rectangle.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/canvas/rectangle.cc b/libs/canvas/rectangle.cc index acda1708a3..3512c617e1 100644 --- a/libs/canvas/rectangle.cc +++ b/libs/canvas/rectangle.cc @@ -60,7 +60,7 @@ Rectangle::render (Rect const & area, Cairo::RefPtr context) con Rect draw = r.get (); - if (_fill) { + if (_fill && !_transparent) { if (_stops.empty()) { setup_fill_context (context); } else { @@ -124,7 +124,7 @@ Rectangle::compute_bounding_box () const box for the right and bottom edges, see ::render() above */ - r.x1 += 0.5; + // r.x1 += 0.5; r.y1 += 0.5; _bounding_box = r;