summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-04-06 22:51:29 (GMT)
committerMarius Kintel <marius@kintel.net>2011-04-06 22:51:29 (GMT)
commit53d0b594700cbdcf43f7f5e2706680dc0bf85b97 (patch)
tree26d138f2cba9a999231c85a50d02e747f9216385
parent36e970bc799888d9e5dbdfc55d5eca1375a617cc (diff)
bugfix: no bounds checking on program_options in non-MDI mode
-rw-r--r--src/openscad.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openscad.cc b/src/openscad.cc
index 54e80ae..bc1d845 100644
--- a/src/openscad.cc
+++ b/src/openscad.cc
@@ -198,8 +198,9 @@ int main(int argc, char **argv)
}
#ifndef ENABLE_MDI
- if (vm["input-file"].as<vector<string> >().size() > 1)
+ if (vm.count("input-file") > 1) {
help(argv[0]);
+ }
#endif
currentdir = QDir::currentPath();
contact: Jan Huwald // Impressum