mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
avoid crash when using -D canvasenterleave
This only happens when the canvas finds zero items to deliver events too, which should never really happen but did while working on pianoroll stuff.
This commit is contained in:
parent
82cdc6e3db
commit
7c892d7286
1 changed files with 1 additions and 1 deletions
|
|
@ -641,7 +641,7 @@ GtkCanvas::pick_current_item (Duple const & point, int state)
|
|||
|
||||
if (within_items.front() == _current_item) {
|
||||
/* uppermost item at point is already _current_item */
|
||||
DEBUG_TRACE (PBD::DEBUG::CanvasEnterLeave, string_compose ("CURRENT ITEM %1/%2\n", _new_current_item->whatami(), _current_item->name));
|
||||
DEBUG_TRACE (PBD::DEBUG::CanvasEnterLeave, string_compose ("CURRENT ITEM remains %1/%2\n", _current_item->whatami(), _current_item->name));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue