[Liblas-commits] r1036 - trunk/src

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Feb 17 12:56:38 EST 2009


Author: hobu
Date: Tue Feb 17 12:56:38 2009
New Revision: 1036
URL: http://liblas.org/changeset/1036

Log:
remember to clear the vlrs when doing a Reset

Modified:
   trunk/src/lassrs.cpp

Modified: trunk/src/lassrs.cpp
==============================================================================
--- trunk/src/lassrs.cpp	(original)
+++ trunk/src/lassrs.cpp	Tue Feb 17 12:56:38 2009
@@ -42,6 +42,7 @@
 #include <liblas/lassrs.hpp>
 #include <liblas/detail/utility.hpp>
 #include <iostream>
+
 namespace liblas {
 
 LASSRS::LASSRS() 
@@ -89,6 +90,7 @@
     SetVLRs(other.GetVLRs());
     GetGTIF();
 }
+
 LASSRS::LASSRS(const std::vector<LASVLR>& vlrs) 
 {
     m_tiff = NULL;
@@ -127,7 +129,6 @@
 void LASSRS::ResetVLRs()
 {
 
-
     int ret = 0;
     short* kdata = NULL;
     short kvalue = 0;
@@ -137,11 +138,9 @@
     int dcount = 0;
     int ktype = 0;
     int kcount = 0;
+
+    m_vlrs.clear();
     
-    // if (m_vlrs.size())
-    //     m_vlrs.clear();
-    // else
-    //     return;
     if (!m_tiff) throw std::invalid_argument("m_tiff was null");
     if (!m_gtiff) throw std::invalid_argument("m_gtiff was null");
 


More information about the Liblas-commits mailing list