From 2eb7f5dfae97c0b64be1b7ca1d0cc53080f838cd Mon Sep 17 00:00:00 2001 From: wsw0108 Date: Tue, 25 Dec 2018 20:04:41 +0800 Subject: [PATCH] read_json.cpp: fix semantic typo --- read_json.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/read_json.cpp b/read_json.cpp index 842b9ab..b534314 100644 --- a/read_json.cpp +++ b/read_json.cpp @@ -53,7 +53,7 @@ void parse_geometry(int t, json_object *j, drawvec &out, int op, const char *fna size_t i; for (i = 0; i < j->length; i++) { if (within == GEOM_POINT) { - if (i == 0 || mb_geometry[t] == GEOM_MULTIPOINT) { + if (i == 0 || mb_geometry[t] == VT_POINT) { op = VT_MOVETO; } else { op = VT_LINETO; @@ -80,7 +80,6 @@ void parse_geometry(int t, json_object *j, drawvec &out, int op, const char *fna } } - draw d(op, x, y); out.push_back(draw(op, x, y)); } else { fprintf(stderr, "%s:%d: malformed point\n", fname, line);