mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[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:
committed by
Émilie Feral
parent
bf95b460c3
commit
91dc5eb5ec
@@ -32,18 +32,7 @@ int Sequence::nameWithArgument(char * buffer, size_t bufferSize) {
|
|||||||
assert(UTF8Decoder::CharSizeOfCodePoint(symbol()) <= 2);
|
assert(UTF8Decoder::CharSizeOfCodePoint(symbol()) <= 2);
|
||||||
result += UTF8Decoder::CodePointToChars(symbol(), buffer+result, bufferSize-result);
|
result += UTF8Decoder::CodePointToChars(symbol(), buffer+result, bufferSize-result);
|
||||||
assert(result <= bufferSize);
|
assert(result <= bufferSize);
|
||||||
switch (type())
|
result += strlcpy(buffer+result, ")", bufferSize-result);
|
||||||
{
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user