diff options
author | andmarti1424 <andmarti@gmail.com> | 2017-12-02 20:56:41 -0300 |
---|---|---|
committer | andmarti1424 <andmarti@gmail.com> | 2017-12-02 20:56:41 -0300 |
commit | 0d722e7b0aafd72c2e7679fdaf6f3255380a3bd9 (patch) | |
tree | 287620a432b855a040ae8024942d5f1f2628ebbf /src/interp.c | |
parent | 5a87c3cb0a7c6ca0c58bd4e8ada839d4889015e6 (diff) |
work on issue 209
Diffstat (limited to 'src/interp.c')
-rw-r--r-- | src/interp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interp.c b/src/interp.c index 7bbd97c..a3d1e13 100644 --- a/src/interp.c +++ b/src/interp.c @@ -1274,7 +1274,9 @@ double eval(register struct ent * ent, register struct enode * e) { cellerror = CELLREF; if (ent && getVertex(graph, ent, 0) == NULL) GraphAddVertex(graph, ent); return ((double) 0); - case PI_: return ((double) M_PI); + case PI_: + if (ent && getVertex(graph, ent, 0) == NULL) GraphAddVertex(graph, ent); + return ((double) M_PI); case BLACK: return ((double) COLOR_BLACK); case RED: return ((double) COLOR_RED); case GREEN: return ((double) COLOR_GREEN); |