projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tempo ramps - fix various sub-beat tempo line bugs.
[ardour.git]
/
libs
/
ardour
/
tempo.cc
diff --git
a/libs/ardour/tempo.cc
b/libs/ardour/tempo.cc
index 07ff3166f2f8fd5a28091e0f91500f4ffddc7c9a..bd33c8d3b7070e5dd354f60efc21fe889791acd8 100644
(file)
--- a/
libs/ardour/tempo.cc
+++ b/
libs/ardour/tempo.cc
@@
-1709,7
+1709,7
@@
TempoMap::beats_to_bbt_locked (const Metrics& metrics, const double& b) const
{
/* CALLER HOLDS READ LOCK */
MeterSection* prev_m = 0;
- const double beats =
(b < 0.0) ? 0.0 : b
;
+ const double beats =
max (0.0, b)
;
for (Metrics::const_iterator i = metrics.begin(); i != metrics.end(); ++i) {
MeterSection* m = 0;