diff --git a/apps/sequence/list/list_controller.cpp b/apps/sequence/list/list_controller.cpp index 5360a5fd4..9b047de75 100644 --- a/apps/sequence/list/list_controller.cpp +++ b/apps/sequence/list/list_controller.cpp @@ -31,7 +31,7 @@ Toolbox * ListController::toolboxForTextField(TextField * textField) { if (sequenceDefinition == 0) { recurrenceDepth = sequence->numberOfElements()-1; } - m_sequenceToolbox.addCells(sequence->name(), recurrenceDepth); + m_sequenceToolbox.setExtraCells(sequence->name(), recurrenceDepth); return &m_sequenceToolbox; } diff --git a/apps/sequence/list/sequence_toolbox.cpp b/apps/sequence/list/sequence_toolbox.cpp index 38a490082..40afb6234 100644 --- a/apps/sequence/list/sequence_toolbox.cpp +++ b/apps/sequence/list/sequence_toolbox.cpp @@ -64,7 +64,7 @@ int SequenceToolbox::typeAtLocation(int i, int j) { return MathToolbox::typeAtLocation(i,mathToolboxIndex(j)); } -void SequenceToolbox::addCells(const char * sequenceName, int recurrenceDepth) { +void SequenceToolbox::setExtraCells(const char * sequenceName, int recurrenceDepth) { m_numberOfAddedCells = recurrenceDepth; for (int j = 0; j < recurrenceDepth; j++) { m_addedCellLayout[j] = new BaselineRelativeLayout(new StringLayout(sequenceName, 1, KDText::FontSize::Large), new StringLayout((char *)(j == 0? "n" : "n+1"), strlen((char *)(j == 0? "n" : "n+1")), KDText::FontSize::Small), BaselineRelativeLayout::Type::Subscript); diff --git a/apps/sequence/list/sequence_toolbox.h b/apps/sequence/list/sequence_toolbox.h index e8cfd2d04..794d6140a 100644 --- a/apps/sequence/list/sequence_toolbox.h +++ b/apps/sequence/list/sequence_toolbox.h @@ -14,7 +14,7 @@ public: void willDisplayCellForIndex(HighlightCell * cell, int index) override; KDCoordinate rowHeight(int j) override; int typeAtLocation(int i, int j) override; - void addCells(const char * sequenceName, int recurrenceDepth); + void setExtraCells(const char * sequenceName, int recurrenceDepth); private: bool selectAddedCell(int selectedRow); int mathToolboxIndex(int index);