summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-08 15:13:52 -0300
committerAndrés <andmarti@gmail.com>2021-03-08 15:13:52 -0300
commitfca98673b09aa31547131722c653aba1b4d59696 (patch)
treef26c898a0514b7e231e4ff77f5928db35a8c44f9
parent8d48f550c1ab5f4f5c4b2f41d48515f39b772cb9 (diff)
work on issue #499
-rw-r--r--src/interp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/interp.c b/src/interp.c
index 93d6bb4..fbd9bb0 100644
--- a/src/interp.c
+++ b/src/interp.c
@@ -140,6 +140,7 @@ extern int find_range(char * name, int len, struct ent * lmatch, struct ent * rm
#include "dep_graph.h"
extern graphADT graph;
+extern WINDOW * input_win;
/**
* \brief TODO Document finfunc()
*
@@ -973,7 +974,6 @@ double eval(register struct ent * ent, register struct enode * e) {
// if (cellerror == CELLERROR) {
// return (double) 0;
// }
-
if (e == (struct enode *) 0) {
cellerror = CELLINVALID;
return (double) 0;
@@ -1049,8 +1049,9 @@ double eval(register struct ent * ent, register struct enode * e) {
e->e.k = (double) 0;
cellerror = CELLERROR;
}
- //if (ent && getVertex(graph, ent, 0) == NULL) GraphAddVertex(graph, ent);
- // Commented 06/03/2021 for #issue 499
+ // Changed 06/03/2021 for #issue 499
+ if (ent && ent->expr != NULL && getVertex(graph, ent, 0) == NULL) GraphAddVertex(graph, ent);
+
return (e->e.k);
case GETENT:
if (ent && getVertex(graph, ent, 0) == NULL) GraphAddVertex(graph, ent);