[sequence] Fix Toolbox: sequence fullName is for example "u.seq" which

cannot be compare to "u"
This commit is contained in:
Émilie Feral
2019-03-12 14:04:08 +01:00
parent 336c1c8d73
commit 4e823e67b6

View File

@@ -72,7 +72,7 @@ void SequenceToolbox::buildExtraCellsLayouts(const char * sequenceName, int recu
* There is a special case for double recurrent sequences because we do not
* want to parse symbols u(n+2) or v(n+2). */
m_numberOfAddedCells = recurrenceDepth == 2 ? 2*recurrenceDepth : 2*recurrenceDepth+1;
int sequenceIndex = sequenceName == SequenceStore::k_sequenceNames[0] ? 0 : 1;
int sequenceIndex = sequenceName[0] == SequenceStore::k_sequenceNames[0][0] ? 0 : 1;
const char * otherSequenceName = SequenceStore::k_sequenceNames[1-sequenceIndex];
for (int j = 0; j < recurrenceDepth; j++) {
const char * indice = j == 0 ? "n" : "n+1";