(1) do not write sequential same-value automation data into a ControlList (2) thin...
[ardour.git] / libs / ardour / location.cc
index b6a09d863ab189a5e3ea1a84209c6ad4ad02f366..ed9f34ff8bc147798abe76b25ae2bc3bf8cb96cd 100644 (file)
@@ -419,10 +419,8 @@ Location::set_state (const XMLNode& node, int /*version*/)
                return -1;
        }
 
-       if ((prop = node.property ("id")) == 0) {
+       if (!set_id (node)) {
                warning << _("XML node for Location has no ID information") << endmsg;
-       } else {
-               _id = prop->value ();
        }
 
        if ((prop = node.property ("name")) == 0) {