mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
[apps/graph/values] Display only active function in value table
Change-Id: I4e976858a2c4703ad4bc9dadda5059bcc1c994ba
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include "values_controller.h"
|
||||
#include <assert.h>
|
||||
|
||||
using namespace Poincare;
|
||||
using namespace Shared;
|
||||
|
||||
namespace Graph {
|
||||
@@ -27,9 +26,9 @@ bool ValuesController::handleEvent(Ion::Events::Event event) {
|
||||
|
||||
int ValuesController::numberOfColumns() {
|
||||
int result = 1;
|
||||
for (int i = 0; i < m_functionStore->numberOfDefinedFunctions(); i++) {
|
||||
if (m_functionStore->definedFunctionAtIndex(i)->isActive()) {
|
||||
result += 1 + m_functionStore->definedFunctionAtIndex(i)->displayDerivative();
|
||||
for (int i = 0; i < m_functionStore->numberOfActiveFunctions(); i++) {
|
||||
if (m_functionStore->activeFunctionAtIndex(i)->isActive()) {
|
||||
result += 1 + m_functionStore->activeFunctionAtIndex(i)->displayDerivative();
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user