From c21479a3aae97923e1c5f2e784784b28f8cf883e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 2 Mar 2009 18:13:20 +0000 Subject: [PATCH] remove unneeded code in line_drag that was probably copy/pasted from control_point_drag (Ben Loftis, backported from 2.X) git-svn-id: svn://localhost/ardour2/branches/3.0@4717 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/automation_list.cc | 2 ++ libs/ardour/template_utils.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/automation_list.cc b/libs/ardour/automation_list.cc index 4098301eaa..ed804d1b2c 100644 --- a/libs/ardour/automation_list.cc +++ b/libs/ardour/automation_list.cc @@ -282,6 +282,8 @@ AutomationList::serialize_events () XMLNode* node = new XMLNode (X_("events")); stringstream str; + str.precision(15); //10 digits is enough digits for 24 hours at 96kHz + for (iterator xx = _events.begin(); xx != _events.end(); ++xx) { str << (double) (*xx)->when; str << ' '; diff --git a/libs/ardour/template_utils.cc b/libs/ardour/template_utils.cc index 93bfd46972..ae7f653fb8 100644 --- a/libs/ardour/template_utils.cc +++ b/libs/ardour/template_utils.cc @@ -88,7 +88,7 @@ find_route_templates (vector& template_names) XMLTree tree; if (!tree.read (fullpath.c_str())) { - continue; + continue; } XMLNode* root = tree.root();