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:
Paul Davis 2025-01-08 14:24:09 -07:00
parent 82cdc6e3db
commit 7c892d7286

View file

@ -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;
}