From b01ff11b04c5e74ace0a7230f4e9725236578788 Mon Sep 17 00:00:00 2001 From: Sakari Bergen Date: Sun, 26 May 2013 21:25:22 +0300 Subject: Return null if deserializing an export timespan doesn't succeed with at least one range. This should fix an issue with loading old sessions using the old way of handling session ranges specially. --- libs/ardour/export_profile_manager.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/ardour/export_profile_manager.cc') diff --git a/libs/ardour/export_profile_manager.cc b/libs/ardour/export_profile_manager.cc index bc4b31e324..42e494c0cb 100644 --- a/libs/ardour/export_profile_manager.cc +++ b/libs/ardour/export_profile_manager.cc @@ -437,6 +437,10 @@ ExportProfileManager::deserialize_timespan (XMLNode & root) state->time_format = (TimeFormat) string_2_enum (prop->value(), TimeFormat); } + if (state->timespans->empty()) { + return TimespanStatePtr(); + } + return state; } -- cgit v1.2.3