Skip to content

Commit d1378be

Browse files
BaraMGBjasp00
authored andcommitted
revert parts of #3075 (#3437)
1 parent 91182b4 commit d1378be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/AutomatableModel.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,9 @@ float AutomatableModel::inverseScaledValue( float value ) const
276276

277277
QString AutomatableModel::displayValue( const float val ) const
278278
{
279-
const FloatModel *floatmodel = dynamic_cast<const FloatModel*>( this );
280279
switch( m_dataType )
281280
{
282-
case Float: return QString::number( castValue<float>( scaledValue( floatmodel->getRoundedValue() ) ) );
281+
case Float: return QString::number( castValue<float>( scaledValue( val ) ) );
283282
case Integer: return QString::number( castValue<int>( scaledValue( val ) ) );
284283
case Bool: return QString::number( castValue<bool>( scaledValue( val ) ) );
285284
}

0 commit comments

Comments
 (0)