13
0

When removing an item which is event-insensitive, there is no need to repick the current item, since it can never have been used as the current item.

This fixes crashes associated with ghost notes in midi regions.
This commit is contained in:
Paul Davis 2014-01-20 10:53:58 -05:00
parent 8ad27cc777
commit 2691209050

View File

@ -577,7 +577,13 @@ GtkCanvas::item_going_away (Item* item, boost::optional<Rect> bounding_box)
_focused_item = 0;
}
pick_current_item (0); // no mouse state
/* an item which ignores events can never be the current item
so we do not need to repick the current item.
*/
if (!item->ignore_events()) {
pick_current_item (0); // no mouse state
}
}