[Liblas-commits] laszip: blind fix for Hobu

liblas-commits at liblas.org liblas-commits at liblas.org
Mon Jan 17 11:00:16 EST 2011


details:   http://hg.liblas.orglaszip/rev/26a0c2c313ad
changeset: 149:26a0c2c313ad
user:      Michael P. Gerlek <mpg at flaxen.com>
date:      Mon Jan 17 08:00:09 2011 -0800
description:
blind fix for Hobu

diffstat:

 tools/laszippertest.cpp |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r e9b23bb9df21 -r 26a0c2c313ad tools/laszippertest.cpp
--- a/tools/laszippertest.cpp	Sun Jan 16 16:38:27 2011 -0800
+++ b/tools/laszippertest.cpp	Mon Jan 17 08:00:09 2011 -0800
@@ -287,9 +287,14 @@
 
     va_start(args, format);
     vfprintf(stderr, format, args);
+    va_end(args);
+    fflush(stderr);
+
+    va_start(args, format);
     vfprintf(settings->logfile, format, args);
-    va_end(args);
+    va_end(args);    
     fflush(settings->logfile);
+
     return;
 }
 
@@ -552,7 +557,10 @@
 
     // use a seed based on the current time
     settings->seed = (unsigned int)time(NULL);
-    log("Seed: %u\n", settings->seed);
+    if (settings->use_random)
+    {
+        log("Seed: %u\n", settings->seed);
+    }
 
     run_test("test1.lax", data, LASzip::POINT_BY_POINT_RAW);
     run_test("test2.lax", data, LASzip::POINT_BY_POINT_ARITHMETIC);


More information about the Liblas-commits mailing list