From 96b21c4824c5360b478daf04bf39f970c41a55a6 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 5 Dec 2021 10:36:26 -0700 Subject: [PATCH] fix crash in Playlist::relayer() when there are no regions --- libs/ardour/playlist.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index d9451e5ce1..cd5d16441e 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -2504,6 +2504,11 @@ Playlist::relayer () return; } + if (regions.empty()) { + /* nothing to do */ + return; + } + /* Build up a new list of regions on each layer, stored in a set of lists * each of which represent some period of time on some layer. The idea * is to avoid having to search the entire region list to establish whether