diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc index 8c7960a217..4371e60658 100644 --- a/libs/canvas/canvas.cc +++ b/libs/canvas/canvas.cc @@ -392,15 +392,14 @@ GtkCanvas::pick_current_item (Duple const & point, int state) for (i = items.begin(); i != items.end(); ++i) { - Item const * new_item = *i; + Item const * possible_item = *i; - /* We ignore invisible items, groups and items that ignore events */ + /* We ignore invisible items, containers and items that ignore events */ - if (!new_item->visible() || new_item->ignore_events() || dynamic_cast(new_item) != 0) { + if (!possible_item->visible() || possible_item->ignore_events() || dynamic_cast(possible_item) != 0) { continue; } - - within_items.push_front (new_item); + within_items.push_front (possible_item); } if (within_items.empty()) {