[Liblas-commits] hg-main-tree: return #'s that are 0 are legit(ish)

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Apr 26 12:06:20 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/f9262c35bb8a
changeset: 654:f9262c35bb8a
user:      Howard Butler <hobu.inc at gmail.com>
date:      Tue Apr 26 11:06:04 2011 -0500
description:
return #'s that are 0 are legit(ish)

diffstat:

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

diffs (12 lines):

diff -r 5e725be08a10 -r f9262c35bb8a src/drivers/las/SummaryData.cpp
--- a/src/drivers/las/SummaryData.cpp	Tue Apr 26 10:20:32 2011 -0500
+++ b/src/drivers/las/SummaryData.cpp	Tue Apr 26 11:06:04 2011 -0500
@@ -135,7 +135,7 @@
 
 boost::uint32_t SummaryData::getReturnCount(int returnNumber) const
 {
-    if (returnNumber <= 0 || returnNumber > s_maxNumReturns)
+    if (returnNumber < 0 || returnNumber > s_maxNumReturns)
         throw invalid_point_data("point returnNumber is out of range", 0);
 
     return m_returnCounts[returnNumber-1];


More information about the Liblas-commits mailing list