[apps/shared] EditableCellTableViewController: function and sequence

values table cells were to narrow to display
LargeNumberOfSignificantDigits (~16 digits). We adjust the number of
digits authorized before switching to scientific mode to the cell width
This commit is contained in:
Émilie Feral
2019-08-05 13:49:46 +02:00
parent c2720109fc
commit 79d7e58ec8
3 changed files with 7 additions and 2 deletions

View File

@@ -171,7 +171,7 @@ void ValuesController::willDisplayCellAtLocation(HighlightCell * cell, int i, in
// The cell is a value cell
EvenOddBufferTextCell * myValueCell = (EvenOddBufferTextCell *)cell;
double x = m_interval->element(j-1);
PoincareHelpers::ConvertFloatToText<double>(evaluationOfAbscissaAtColumn(x, i), buffer, PrintFloat::bufferSizeForFloatsWithPrecision(Constant::LargeNumberOfSignificantDigits), Constant::LargeNumberOfSignificantDigits);
PoincareHelpers::ConvertFloatToText<double>(evaluationOfAbscissaAtColumn(x, i), buffer, cellBufferSize(i), Constant::LargeNumberOfSignificantDigits);
myValueCell->setText(buffer);
}
}