From 53d0b594700cbdcf43f7f5e2706680dc0bf85b97 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Thu, 7 Apr 2011 00:51:29 +0200 Subject: bugfix: no bounds checking on program_options in non-MDI mode 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 >().size() > 1) + if (vm.count("input-file") > 1) { help(argv[0]); + } #endif currentdir = QDir::currentPath(); -- cgit v0.10.1