[apps/reg] Fix dynamic view initialization

This commit is contained in:
Léa Saviot
2018-06-12 16:24:30 +02:00
parent 96909a0c21
commit de47bf5486

View File

@@ -24,7 +24,6 @@ CalculationController::CalculationController(Responder * parentResponder, Button
m_store(store)
{
m_r2Layout = new HorizontalLayout(new CharLayout('r', KDText::FontSize::Small), new VerticalOffsetLayout(new CharLayout('2', KDText::FontSize::Small), VerticalOffsetLayout::Type::Superscript, false), false);
m_r2TitleCell->setRightMargin(k_r2CellMargin);
}
CalculationController::~CalculationController() {
@@ -255,6 +254,7 @@ View * CalculationController::loadView() {
tableView->setBackgroundColor(Palette::WallScreenDark);
tableView->setMargins(k_margin, k_scrollBarMargin, k_scrollBarMargin, k_margin);
m_r2TitleCell = new EvenOddExpressionCell(1.0f, 0.5f);
m_r2TitleCell->setRightMargin(k_r2CellMargin);
for (int i = 0; i < Store::k_numberOfSeries; i++) {
m_columnTitleCells[i] = new ColumnTitleCell(tableView);
}