From 308c84160b07024eed2d26f5c89e4ba3954193d8 Mon Sep 17 00:00:00 2001 From: Wolfgang Becker Date: Sun, 15 Apr 2007 21:35:52 +0000 Subject: [PATCH] Increased precision when saving configuration. Fixed "-a auto". SVN-Revision: 4982 --- src/lisp/writer.cpp | 2 ++ src/main.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lisp/writer.cpp b/src/lisp/writer.cpp index 5792c47dd..d2c7b1c5e 100644 --- a/src/lisp/writer.cpp +++ b/src/lisp/writer.cpp @@ -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() diff --git a/src/main.cpp b/src/main.cpp index 17bd43185..a7159263d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; -- 2.11.0