From 85bcda2a6ea7869de973f803433e4e218eed673f Mon Sep 17 00:00:00 2001 From: GZharun Date: Thu, 8 Jan 2015 12:37:12 +0200 Subject: [PATCH] [Summary] Made impossible for waveform zoom multiplier to become less then 1 --- gtk2_ardour/audio_streamview.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/audio_streamview.cc b/gtk2_ardour/audio_streamview.cc index 16bea88771..ea77607d64 100644 --- a/gtk2_ardour/audio_streamview.cc +++ b/gtk2_ardour/audio_streamview.cc @@ -65,6 +65,10 @@ AudioStreamView::AudioStreamView (AudioTimeAxisView& tv) if (session) { _amplitude_above_axis = session->config.get_wave_amlitude_zoom () * session->config.get_wave_zoom_factor (); + + if (_amplitude_above_axis < 1.0) { + _amplitude_above_axis = 1.0; + } } } @@ -76,7 +80,7 @@ AudioStreamView::set_amplitude_above_axis (gdouble app) if ( abs(_amplitude_above_axis - app) > 0.01 ) { if (app < 1.0) { - _amplitude_above_axis = 1; + _amplitude_above_axis = 1.0; } else { _amplitude_above_axis = app; }