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(