don't request redraw of a Canvas item if it marked invisible
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 25 Oct 2013 17:29:23 +0000 (13:29 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 25 Oct 2013 17:29:23 +0000 (13:29 -0400)
libs/canvas/item.cc

index 542b6e5cf58ef8ca901cf204e89827025b87da7a..79351846db88e4218bf29df56c9de68029c81bce 100644 (file)
@@ -331,7 +331,7 @@ Item::width () const
 void
 Item::redraw () const
 {
-       if (_bounding_box && _canvas) {
+       if (_visible && _bounding_box && _canvas) {
                _canvas->request_redraw (item_to_canvas (_bounding_box.get()));
        }
 }