summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_tempodisplay.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-05-24 06:49:52 +1000
committernick_m <mainsbridge@gmail.com>2016-05-27 23:38:17 +1000
commit1927a707c560cfe2a9963fb0fb75d65f5720256d (patch)
tree834295054ebc43309731dc1d779cb971849c5270 /gtk2_ardour/editor_tempodisplay.cc
parent5d5fba0cfbec28eec710aabba6f55f1dcdb75d5a (diff)
Tempo ramps - fix huge marker height mark, remove unused var.
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r--gtk2_ardour/editor_tempodisplay.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc
index e0af960d40..c100fbd4c7 100644
--- a/gtk2_ardour/editor_tempodisplay.cc
+++ b/gtk2_ardour/editor_tempodisplay.cc
@@ -129,7 +129,7 @@ Editor::draw_metric_marks (const Metrics& metrics)
TempoMarker* tempo_marker;
if ((tempo_marker = dynamic_cast<TempoMarker*> (*x)) != 0) {
- tempo_marker->update_height_mark ((tempo_marker->tempo().beats_per_minute() - min_tempo) / (max_tempo - min_tempo));
+ tempo_marker->update_height_mark ((tempo_marker->tempo().beats_per_minute() - min_tempo) / max (10.0, max_tempo - min_tempo));
}
}
}