[apps] VariableBoxController cannot access private methods of Expression

This commit is contained in:
Émilie Feral
2018-09-03 15:56:10 +02:00
parent 3eb3568e60
commit 5f65c59916

View File

@@ -151,7 +151,7 @@ void VariableBoxController::ContentViewController::willDisplayCellForIndex(Highl
/* TODO: implement list contexts */
// TODO: handle matrix and scalar!
LayoutRef layoutR = layoutRefForIndex(index);
const Matrix matrixEvaluation = Matrix(static_cast<const MatrixNode *>(evaluation.node()));
const Matrix matrixEvaluation = static_cast<Matrix>(evaluation);
myCell->setLayoutRef(layoutR);
char buffer[2*PrintFloat::bufferSizeForFloatsWithPrecision(2)+1];
int numberOfChars = PrintFloat::convertFloatToText<float>(matrixEvaluation.numberOfRows(), buffer, PrintFloat::bufferSizeForFloatsWithPrecision(2), 2, Preferences::PrintFloatMode::Decimal);