13
0

another case of misplaced parentheses during the removal of boost::optional from Canvas

This commit is contained in:
Paul Davis 2017-01-25 16:54:29 +01:00
parent fa1a7ae9b9
commit 49422aa89a

View File

@ -183,7 +183,7 @@ Canvas::item_shown_or_hidden (Item* item)
{
Rect bbox = item->bounding_box ();
if (bbox) {
if (item->item_to_window (bbox.intersection (visible_area ()))) {
if (item->item_to_window (bbox).intersection (visible_area ())) {
queue_draw_item_area (item, bbox);
}
}