[Liblas-commits] hg-1.2: fix bug when reading color by random access
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Feb 16 17:05:44 EST 2011
details: http://hg.liblas.orghg-1.2/rev/726172988def
changeset: 1093:726172988def
user: Volker Wichmann <wichmann at laserdata.at>
date: Tue Feb 15 22:55:14 2011 +0100
description:
fix bug when reading color by random access
in reader12.cpp, ReaderImpl::ReadPointAt() green and blue were interchanged
diffstat:
src/detail/reader12.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 5000ca6cf020 -r 726172988def src/detail/reader12.cpp
--- a/src/detail/reader12.cpp Thu Mar 26 03:04:57 2009 +0000
+++ b/src/detail/reader12.cpp Tue Feb 15 22:55:14 2011 +0100
@@ -330,8 +330,8 @@
else if (header.GetDataFormatId() == LASHeader::ePointFormat2)
{
detail::read_n(red, m_ifs, sizeof(uint16_t));
+ detail::read_n(green, m_ifs, sizeof(uint16_t));
detail::read_n(blue, m_ifs, sizeof(uint16_t));
- detail::read_n(green, m_ifs, sizeof(uint16_t));
color.SetRed(red);
color.SetBlue(blue);
color.SetGreen(green);
@@ -342,8 +342,8 @@
detail::read_n(t, m_ifs, sizeof(double));
point.SetTime(t);
detail::read_n(red, m_ifs, sizeof(uint16_t));
+ detail::read_n(green, m_ifs, sizeof(uint16_t));
detail::read_n(blue, m_ifs, sizeof(uint16_t));
- detail::read_n(green, m_ifs, sizeof(uint16_t));
color.SetRed(red);
color.SetBlue(blue);
color.SetGreen(green);
More information about the Liblas-commits
mailing list