summaryrefslogtreecommitdiff
path: root/src/primitives.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2010-11-07 22:50:57 (GMT)
committerMarius Kintel <marius@kintel.net>2010-11-07 22:50:57 (GMT)
commit93c00f9efe181caf1fc033c6eec986e6abefa814 (patch)
tree1755ea9b1635045a6333ec86890eaf82ca373c6e /src/primitives.cc
parentab90b38780365943877d1f173d6ae0b692b6ce51 (diff)
Allow render_polyset() to return NULL
Diffstat (limited to 'src/primitives.cc')
-rw-r--r--src/primitives.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/primitives.cc b/src/primitives.cc
index 187a4ea..2c1cf1f 100644
--- a/src/primitives.cc
+++ b/src/primitives.cc
@@ -509,8 +509,8 @@ sphere_next_r2:
double x,y;
if (!this->points.vec[i]->getv2(x, y)) {
PRINTF("ERROR: Unable to convert point at index %d to a vec2 of numbers", i);
- // FIXME: Return NULL and make sure this is checked by all callers?
- return p;
+ p->unlink();
+ return NULL;
}
dd.points.append(DxfData::Point(x, y));
}
contact: Jan Huwald // Impressum