From 63a39bde76e5722f51417074be9b9aa35ec19c73 Mon Sep 17 00:00:00 2001 From: Vesa Date: Fri, 30 May 2014 19:29:45 +0300 Subject: [PATCH] Models: Fix error --- src/core/AutomatableModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/AutomatableModel.cpp b/src/core/AutomatableModel.cpp index fa2d4c3e2..81649be87 100644 --- a/src/core/AutomatableModel.cpp +++ b/src/core/AutomatableModel.cpp @@ -703,7 +703,7 @@ float AutomatableModel::globalAutomationValueAt( const MidiTime& time ) { // scale/fit the value appropriately and return it const float value = latestPattern->valueAt( time - latestPattern->startPosition() ); - const float scaled_value = + const float scaledValue = ( m_scaleType == Linear ) ? value : logToLinearScale(