From: nick_m Date: Sun, 17 Jul 2016 16:58:59 +0000 (+1000) Subject: Fix stored type confusion in Meter/TempoSection::get_state(). X-Git-Tag: 5.0-pre1~65 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=5f2ee3328f70c8acca6948abe8a40096d2cb497a;p=ardour.git Fix stored type confusion in Meter/TempoSection::get_state(). --- diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index 0c328c0b1e..793d96c663 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -179,13 +179,13 @@ TempoSection::get_state() const char buf[256]; LocaleGuard lg; - snprintf (buf, sizeof (buf), "%f", pulse()); + snprintf (buf, sizeof (buf), "%lf", pulse()); root->add_property ("pulse", buf); snprintf (buf, sizeof (buf), "%li", frame()); root->add_property ("frame", buf); - snprintf (buf, sizeof (buf), "%f", _beats_per_minute); + snprintf (buf, sizeof (buf), "%lf", _beats_per_minute); root->add_property ("beats-per-minute", buf); - snprintf (buf, sizeof (buf), "%f", _note_type); + snprintf (buf, sizeof (buf), "%lf", _note_type); root->add_property ("note-type", buf); snprintf (buf, sizeof (buf), "%s", movable()?"yes":"no"); root->add_property ("movable", buf); @@ -569,12 +569,12 @@ MeterSection::get_state() const root->add_property ("bbt", buf); snprintf (buf, sizeof (buf), "%lf", beat()); root->add_property ("beat", buf); - snprintf (buf, sizeof (buf), "%f", _note_type); + snprintf (buf, sizeof (buf), "%lf", _note_type); root->add_property ("note-type", buf); snprintf (buf, sizeof (buf), "%li", frame()); root->add_property ("frame", buf); root->add_property ("lock-style", enum_2_string (position_lock_style())); - snprintf (buf, sizeof (buf), "%f", _divisions_per_bar); + snprintf (buf, sizeof (buf), "%lf", _divisions_per_bar); root->add_property ("divisions-per-bar", buf); snprintf (buf, sizeof (buf), "%s", movable()?"yes":"no"); root->add_property ("movable", buf);