[Sequence Graph] Fixing the banner to display u(n)

The banner used to display u(n+1)/u(n+2) if the sequences were not
explicit. This was incorrect and fixed

Change-Id: I59100942b51f4170d9662a6fd7b82d0f7e50ae6f
This commit is contained in:
Arthur Camouseigt
2020-10-12 16:44:53 +02:00
committed by Émilie Feral
parent bf95b460c3
commit 91dc5eb5ec

View File

@@ -32,18 +32,7 @@ int Sequence::nameWithArgument(char * buffer, size_t bufferSize) {
assert(UTF8Decoder::CharSizeOfCodePoint(symbol()) <= 2);
result += UTF8Decoder::CodePointToChars(symbol(), buffer+result, bufferSize-result);
assert(result <= bufferSize);
switch (type())
{
case Type::Explicit:
result += strlcpy(buffer+result, ")", bufferSize-result);
break;
case Type::SingleRecurrence:
result += strlcpy(buffer+result, "+1)", bufferSize-result);
break;
default:
result += strlcpy(buffer+result, "+2)", bufferSize-result);
break;
}
result += strlcpy(buffer+result, ")", bufferSize-result);
return result;
}