diff options
author | Marius Kintel <marius@kintel.net> | 2011-12-27 13:46:10 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-12-27 13:46:10 (GMT) |
commit | bac92dbd0ecb7b9535b9acbcd019c88ff9981b4a (patch) | |
tree | 3e02392a80d53d54e289328d478922328e32fb4e /src/openscad.cc | |
parent | e502fab71d998c0bd025512c0c3884a1117479d1 (diff) | |
parent | 546ed1690486443e6780c1509626de8758a73498 (diff) |
Merge branch 'master' into color-priority
Diffstat (limited to 'src/openscad.cc')
-rw-r--r-- | src/openscad.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openscad.cc b/src/openscad.cc index 0d5b25e..c6dd7b6 100644 --- a/src/openscad.cc +++ b/src/openscad.cc @@ -364,6 +364,10 @@ int main(int argc, char **argv) } if (dxf_output_file) { + if (root_N.dim != 2) { + fprintf(stderr, "Current top level object is not a 2D object.\n"); + exit(1); + } std::ofstream fstream(dxf_output_file); if (!fstream.is_open()) { PRINTF("Can't open file \"%s\" for export", dxf_output_file); |