13
0

don't request redraw of a Canvas item if it marked invisible

This commit is contained in:
Paul Davis 2013-10-25 13:29:23 -04:00
parent 3a5e98bb8b
commit 5ebc4a99be

View File

@ -331,7 +331,7 @@ Item::width () const
void void
Item::redraw () const Item::redraw () const
{ {
if (_bounding_box && _canvas) { if (_visible && _bounding_box && _canvas) {
_canvas->request_redraw (item_to_canvas (_bounding_box.get())); _canvas->request_redraw (item_to_canvas (_bounding_box.get()));
} }
} }