[apps] Force the display mode to auto in all float parameter controller

Change-Id: I5bc978240e72677bc92762363cf29b56a036a365
This commit is contained in:
Émilie Feral
2017-01-31 14:50:56 +01:00
parent b78aaf08d7
commit f3e9e29045

View File

@@ -27,7 +27,7 @@ int FloatParameterController::activeCell() {
void FloatParameterController::willDisplayCellForIndex(TableViewCell * cell, int index) {
EditableTextMenuListCell * myCell = (EditableTextMenuListCell *) cell;
char buffer[Float::bufferSizeForFloatsWithPrecision(Constant::LargeNumberOfSignificantDigits)];
Float(parameterAtIndex(index)).convertFloatToText(buffer, Float::bufferSizeForFloatsWithPrecision(Constant::LargeNumberOfSignificantDigits), Constant::LargeNumberOfSignificantDigits);
Float(parameterAtIndex(index)).convertFloatToText(buffer, Float::bufferSizeForFloatsWithPrecision(Constant::LargeNumberOfSignificantDigits), Constant::LargeNumberOfSignificantDigits, Expression::DisplayMode::Auto);
myCell->setAccessoryText(buffer);
}