use fill transparency detection to avoid rendering transparent (invisible) rectangle...
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 7 Mar 2014 17:29:26 +0000 (12:29 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 7 Mar 2014 17:29:26 +0000 (12:29 -0500)
libs/canvas/rectangle.cc

index acda1708a3f425799d5b2a894894005e5f6edd40..3512c617e171bd67e1c01436c37eb5d780f5fe87 100644 (file)
@@ -60,7 +60,7 @@ Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> 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;