fix crash caused by click-on-region-name if name highlights are not in use - such a click is not a trim operation under those conditions

This commit is contained in:
Paul Davis 2014-06-08 11:23:00 -04:00
parent 34e2cf7913
commit ba8d0e32f7

View File

@ -1068,8 +1068,10 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
case RegionViewName:
{
/* rename happens on edit clicks */
_drags->set (new TrimDrag (this, clicked_regionview->get_name_highlight(), clicked_regionview, selection->regions.by_layer()), event);
return true;
if (clicked_regionview->get_name_highlight()) {
_drags->set (new TrimDrag (this, clicked_regionview->get_name_highlight(), clicked_regionview, selection->regions.by_layer()), event);
return true;
}
break;
}