We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91182b4 commit d1378beCopy full SHA for d1378be
src/core/AutomatableModel.cpp
@@ -276,10 +276,9 @@ float AutomatableModel::inverseScaledValue( float value ) const
276
277
QString AutomatableModel::displayValue( const float val ) const
278
{
279
- const FloatModel *floatmodel = dynamic_cast<const FloatModel*>( this );
280
switch( m_dataType )
281
282
- case Float: return QString::number( castValue<float>( scaledValue( floatmodel->getRoundedValue() ) ) );
+ case Float: return QString::number( castValue<float>( scaledValue( val ) ) );
283
case Integer: return QString::number( castValue<int>( scaledValue( val ) ) );
284
case Bool: return QString::number( castValue<bool>( scaledValue( val ) ) );
285
}
0 commit comments