[shared] Fix SumGraphController

This commit is contained in:
Émilie Feral
2018-09-06 14:05:43 +02:00
parent 5cc3930a44
commit eeaea93468
4 changed files with 6 additions and 6 deletions

View File

@@ -229,8 +229,8 @@ void SumGraphController::LegendView::setEditableZone(double d) {
m_editableZone.setText(buffer);
}
void SumGraphController::LegendView::setSumSymbol(Step step, double start, double end, double result, ExpressionLayout * functionLayout) {
assert(step == Step::Result || functionLayout == nullptr);
void SumGraphController::LegendView::setSumSymbol(Step step, double start, double end, double result, LayoutReference functionLayout) {
assert(step == Step::Result || functionLayout.isUninitialized());
const char sigma[] = {' ', m_sumSymbol};
if (step == Step::FirstParameter) {
m_sumLayoutRef = LayoutHelper::String(sigma, sizeof(sigma));