[Liblas-commits] hg-1.6: fix #221, remove arbitrary limits on SetCreationDOY and ...

liblas-commits at liblas.org liblas-commits at liblas.org
Mon Apr 4 10:36:25 EDT 2011


details:   http://hg.liblas.orghg-1.6/rev/a02168a355cb
changeset: 2860:a02168a355cb
user:      Howard Butler <hobu.inc at gmail.com>
date:      Mon Apr 04 09:35:37 2011 -0500
description:
fix #221, remove arbitrary limits on SetCreationDOY and SetCreationYear

diffstat:

 src/header.cpp |  7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diffs (24 lines):

diff -r e0ae15027f61 -r a02168a355cb src/header.cpp
--- a/src/header.cpp	Fri Mar 25 08:33:57 2011 -0700
+++ b/src/header.cpp	Mon Apr 04 09:35:37 2011 -0500
@@ -323,9 +323,6 @@
 
 void Header::SetCreationDOY(uint16_t v)
 {
-    if (v > 366)
-        throw std::out_of_range("day of year out of range");
-
     m_createDOY = v;
 }
 
@@ -336,10 +333,6 @@
 
 void Header::SetCreationYear(uint16_t v)
 {
-    // mloskot: I've taken these values arbitrarily
-    if (v > 9999)
-        throw std::out_of_range("year out of range");
-
     m_createYear = v;
 }
 


More information about the Liblas-commits mailing list