don't do as much work if a Rectangle has no outline width or outline what values
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 25 Sep 2016 19:45:10 +0000 (14:45 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 27 Sep 2016 19:59:32 +0000 (14:59 -0500)
libs/canvas/rectangle.cc

index 64cdd3af8acedb78c52ee04cb744d03152bf2071..3158dad4ae102e6beb4a2d25c8733bb58879b59c 100644 (file)
@@ -90,7 +90,7 @@ Rectangle::render_self (Rect const & area, Cairo::RefPtr<Cairo::Context> context
                context->fill ();
        }
 
-       if (_outline) {
+       if (_outline && _outline_width && _outline_what) {
 
                setup_outline_context (context);