[apps/graph] Redefinition of active function

Change-Id: I23e83a1107daf85bdf99c7b100d8bca6d724c919
This commit is contained in:
Émilie Feral
2016-11-17 11:57:08 +01:00
parent cf74920f33
commit beaedc8888
3 changed files with 15 additions and 15 deletions

View File

@@ -80,7 +80,7 @@ int FunctionStore::numberOfFunctions() {
int FunctionStore::numberOfActiveFunctions() {
int result = 0;
for (int i = 0; i < m_numberOfFunctions; i++) {
if (m_functions[i].isActive()) {
if (m_functions[i].layout() != nullptr && m_functions[i].isActive()) {
result++;
}
}