summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2013-05-26 21:25:22 +0300
committerSakari Bergen <sakari.bergen@beatwaves.net>2013-05-26 21:25:22 +0300
commitb01ff11b04c5e74ace0a7230f4e9725236578788 (patch)
treeeb5b4897cf40564e6f30f635a0a4dd8083d30538 /libs
parent0a364fd9910d999b6954a8ccf54fcdae7c7c1f21 (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')
-rw-r--r--libs/ardour/export_profile_manager.cc4
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;
}