diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2013-05-26 21:25:22 +0300 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2013-05-26 21:25:22 +0300 |
commit | b01ff11b04c5e74ace0a7230f4e9725236578788 (patch) | |
tree | eb5b4897cf40564e6f30f635a0a4dd8083d30538 /libs/ardour/export_profile_manager.cc | |
parent | 0a364fd9910d999b6954a8ccf54fcdae7c7c1f21 (diff) |
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.
Diffstat (limited to 'libs/ardour/export_profile_manager.cc')
-rw-r--r-- | libs/ardour/export_profile_manager.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |