summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorBen Loftis <ben@glw.com>2009-02-17 22:52:09 +0000
committerBen Loftis <ben@glw.com>2009-02-17 22:52:09 +0000
commit3d2c6f5a608da470a901370402dce06172865cad (patch)
tree71d1c496f86092c87cf4d1d506f5bf5e693f7526 /libs
parentc6740a61d766cef183525c1736ecb96496272fc2 (diff)
stringstream needs to preserve plenty of significant digits when writing automation events to disk
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4617 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/automation_event.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/automation_event.cc b/libs/ardour/automation_event.cc
index 44cba83f38..d5a7d50bb1 100644
--- a/libs/ardour/automation_event.cc
+++ b/libs/ardour/automation_event.cc
@@ -1250,6 +1250,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;