mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[apps/graph/graph_view] Do not recompute numberOfActiveFunctions
This commit is contained in:
committed by
LeaNumworks
parent
d476e7944d
commit
a7282e6f33
@@ -24,7 +24,8 @@ void GraphView::reload() {
|
||||
void GraphView::drawRect(KDContext * ctx, KDRect rect) const {
|
||||
FunctionGraphView::drawRect(ctx, rect);
|
||||
ContinuousFunctionStore * functionStore = App::app()->functionStore();
|
||||
for (int i = 0; i < functionStore->numberOfActiveFunctions(); i++) {
|
||||
const int activeFunctionsCount = functionStore->numberOfActiveFunctions();
|
||||
for (int i = 0; i < activeFunctionsCount ; i++) {
|
||||
Ion::Storage::Record record = functionStore->activeRecordAtIndex(i);
|
||||
ExpiringPointer<ContinuousFunction> f = functionStore->modelForRecord(record);;
|
||||
Shared::ContinuousFunction::PlotType type = f->plotType();
|
||||
|
||||
Reference in New Issue
Block a user