diff options
author | Marius Kintel <marius@kintel.net> | 2013-12-06 05:52:51 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-12-06 05:52:51 (GMT) |
commit | ede5c4b6882692dc28fc7017c4aeb87ec9222f8e (patch) | |
tree | 9e1d0aa918623523c0727e60307881cc09838e70 /src/PolySetCGALEvaluator.cc | |
parent | e3317ecc64659ae8be2a7b02d4df17dad6d875db (diff) |
delete ps when short-circuiting return, no need for explicit boost::format
Diffstat (limited to 'src/PolySetCGALEvaluator.cc')
-rw-r--r-- | src/PolySetCGALEvaluator.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PolySetCGALEvaluator.cc b/src/PolySetCGALEvaluator.cc index e5eba2b..599fd7f 100644 --- a/src/PolySetCGALEvaluator.cc +++ b/src/PolySetCGALEvaluator.cc @@ -458,9 +458,10 @@ PolySet *PolySetCGALEvaluator::rotateDxfData(const RotateExtrudeNode &node, DxfD double max_x = 0; for (size_t j = 0; j < dxf.paths[i].indices.size(); j++) { double point_x = dxf.points[dxf.paths[i].indices[j]][0]; - if(point_x < 0){ + if (point_x < 0) { PRINT("ERROR: all points for rotate_extrude() must have non-negative X coordinates"); - PRINT((boost::format("[Point %d on path %d has X coordinate %f]") % j % i % point_x).str()); + PRINTB("[Point %d on path %d has X coordinate %f]", j % i % point_x); + delete ps; return NULL; } max_x = fmax(max_x, point_x); |