mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
[graph] Create a static method StorageCartesianFunctionStore::Symbol()
This commit is contained in:
@@ -40,7 +40,7 @@ Layout IntegralGraphController::createFunctionLayout(StorageFunction * function)
|
||||
constexpr size_t bufferSize = SymbolAbstract::k_maxNameSize+5; // f(x)dx
|
||||
char buffer[bufferSize];
|
||||
const char * dx = "dx";
|
||||
int numberOfChars = function->nameWithArgument(buffer, bufferSize-strlen(dx), 'x');
|
||||
int numberOfChars = function->nameWithArgument(buffer, bufferSize-strlen(dx), StorageCartesianFunctionStore::Symbol());
|
||||
strlcpy(buffer+numberOfChars, dx, bufferSize-numberOfChars);
|
||||
return LayoutHelper::String(buffer, strlen(buffer), KFont::SmallFont);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user