mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 07:10:40 +01:00
[apps] Prevent duplicating functions to avoid crashing at exit (when
function stores are deleted) Change-Id: Ia0efb528f02efaaba87eccd48385163b48593387
This commit is contained in:
@@ -57,6 +57,7 @@ void CartesianFunctionStore::removeFunction(Shared::Function * f) {
|
||||
for (int j = i; j<m_numberOfFunctions; j++) {
|
||||
m_functions[j] = m_functions[j+1];
|
||||
}
|
||||
m_functions[m_numberOfFunctions] = CartesianFunction("", KDColorBlack);
|
||||
}
|
||||
|
||||
int CartesianFunctionStore::maxNumberOfFunctions() {
|
||||
|
||||
Reference in New Issue
Block a user