Increased precision when saving configuration.
authorWolfgang Becker <uafr@gmx.de>
Sun, 15 Apr 2007 21:35:52 +0000 (21:35 +0000)
committerWolfgang Becker <uafr@gmx.de>
Sun, 15 Apr 2007 21:35:52 +0000 (21:35 +0000)
Fixed "-a auto".

SVN-Revision: 4982

src/lisp/writer.cpp
src/main.cpp

index 5792c47..d2c7b1c 100644 (file)
@@ -33,6 +33,7 @@ Writer::Writer(const std::string& filename)
   out = new OFileStream(filename);
   out_owned = true;
   indent_depth = 0;
+  out->precision(10);
 }
 
 Writer::Writer(std::ostream* newout)
@@ -40,6 +41,7 @@ Writer::Writer(std::ostream* newout)
   out = newout;
   out_owned = false;
   indent_depth = 0;
+  out->precision(10);
 }
 
 Writer::~Writer()
index 17bd431..a715926 100644 (file)
@@ -278,7 +278,8 @@ static bool parse_commandline(int argc, char** argv)
         print_usage(argv[0]);
         throw std::runtime_error("Need to specify a parameter for aspect switch");
       }
-      if(strcasecmp(argv[i], "auto") == 0) {
+      if(strcasecmp(argv[i+1], "auto") == 0) {
+        i++;
         config->aspect_ratio = -1;
       } else {
         int aspect_width, aspect_height;