From 565fef2ba9f51e9d7462ec545dcc0268ee744f0c Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Tue, 2 Oct 2018 15:54:20 -0700 Subject: [PATCH] Bug 1832: Fix adjusting time track when in logarithmic scale The typo that caused this appears to have been introduced when this code was restructured in 9e0010ec5f. --- src/tracks/ui/EnvelopeHandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracks/ui/EnvelopeHandle.cpp b/src/tracks/ui/EnvelopeHandle.cpp index 809f4bb42..947b6241c 100644 --- a/src/tracks/ui/EnvelopeHandle.cpp +++ b/src/tracks/ui/EnvelopeHandle.cpp @@ -60,7 +60,7 @@ namespace { zoomMin = tt.GetRangeLower(), zoomMax = tt.GetRangeUpper(); if (dB) { // MB: silly way to undo the work of GetWaveYPos while still getting a logarithmic scale - zoomMin = LINEAR_TO_DB(std::max(1.0e-7, double(dBRange))) / dBRange + 1.0; + zoomMin = LINEAR_TO_DB(std::max(1.0e-7, double(zoomMin))) / dBRange + 1.0; zoomMax = LINEAR_TO_DB(std::max(1.0e-7, double(zoomMax))) / dBRange + 1.0; } }