From 59b0d164889aedcda06bc7e5fcc87912c105dc24 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sun, 4 Sep 2011 23:20:50 +0200 Subject: bugfix: Don't try to export empty polyhedrons diff --git a/tests/cgaltest.cc b/tests/cgaltest.cc index f2fc169..a882638 100644 --- a/tests/cgaltest.cc +++ b/tests/cgaltest.cc @@ -170,9 +170,10 @@ int main(int argc, char **argv) CGAL_Nef_polyhedron N = cgalevaluator.evaluateCGALMesh(*root_node); QDir::setCurrent(original_path.absolutePath()); - QTextStream outstream(stdout); - export_stl(&N, outstream, NULL); - + if (!N.empty()) { + QTextStream outstream(stdout); + export_stl(&N, outstream, NULL); + } destroy_builtin_functions(); destroy_builtin_modules(); -- cgit v0.10.1