[Liblas-commits] hg-main-tree: we need to fill in variables to compare to

liblas-commits at liblas.org liblas-commits at liblas.org
Mon Apr 11 16:12:30 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/b6a826972d70
changeset: 531:b6a826972d70
user:      Howard Butler <hobu.inc at gmail.com>
date:      Mon Apr 11 15:12:06 2011 -0500
description:
we need to fill in variables to compare to
Subject: hg-main-tree: copy/paste error

details:   http://hg.libpc.orghg-main-tree/rev/ca57bdc623a2
changeset: 532:ca57bdc623a2
user:      Howard Butler <hobu.inc at gmail.com>
date:      Mon Apr 11 15:12:24 2011 -0500
description:
copy/paste error

diffstat:

 src/drivers/las/Header.cpp |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 593caf305ed5 -r ca57bdc623a2 src/drivers/las/Header.cpp
--- a/src/drivers/las/Header.cpp	Mon Apr 11 15:10:49 2011 -0500
+++ b/src/drivers/las/Header.cpp	Mon Apr 11 15:12:24 2011 -0500
@@ -55,6 +55,7 @@
 char const* const LasHeader::SoftwareIdentifier = "libLAS 1.6.0";
 
 LasHeader::LasHeader()
+    : m_scales(0.01,0.01,0.01)
 {
     // BUG: set default here -- m_schema(LasSchema::ePointFormat3)
     initialize();
@@ -320,8 +321,8 @@
 
     double const minscale = 0.01;
     m_scales[0] = Utils::compare_distance(0.0, x) ? minscale : x;
-    m_scales[0] = Utils::compare_distance(0.0, y) ? minscale : y;
-    m_scales[0] = Utils::compare_distance(0.0, z) ? minscale : z;
+    m_scales[1] = Utils::compare_distance(0.0, y) ? minscale : y;
+    m_scales[2] = Utils::compare_distance(0.0, z) ? minscale : z;
 }
 
 double LasHeader::GetOffsetX() const


More information about the Liblas-commits mailing list