[apps/code] Fix willDisplayCellForIndex

Problem: some nodes were not displayed, because the subtitles count was
not taken into account when using the index parameter if
willDisplayCellForIndex
This commit is contained in:
Léa Saviot
2020-04-03 14:09:26 +02:00
committed by Émilie Feral
parent 69abd75460
commit 34a1a8e35f
2 changed files with 22 additions and 14 deletions

View File

@@ -73,7 +73,7 @@ private:
ScriptNode * scriptNodeAtIndex(int index);
// Cell getters
int typeAndOriginAtLocation(int i, NodeOrigin * resultOrigin) const;
int typeAndOriginAtLocation(int i, NodeOrigin * resultOrigin = nullptr, int * cumulatedOriginsCount = nullptr) const;
// NestedMenuController
HighlightCell * leafCellAtIndex(int index) override { assert(false); return nullptr; }