[Liblas-commits] hg: Fixed issue with writing 7 elements to 5
elements array in H...
liblas-commits at liblas.org
liblas-commits at liblas.org
Thu Jul 29 12:17:17 EDT 2010
changeset 4fe9f366f13f in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=4fe9f366f13f
summary: Fixed issue with writing 7 elements to 5 elements array in Header::write. This is a temporary fix that writes up to 5 elements, even if 7 entries are available - to be decided how to cope with this problem.
diffstat:
src/detail/writer/header.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 6e5d65bfde5e -r 4fe9f366f13f src/detail/writer/header.cpp
--- a/src/detail/writer/header.cpp Thu Jul 29 17:08:48 2010 +0100
+++ b/src/detail/writer/header.cpp Thu Jul 29 17:20:57 2010 +0100
@@ -217,7 +217,7 @@
// TODO: fix this for 1.3, which has srbyr = 7; See detail/reader/header.cpp for more details
// assert(vpbr.size() <= srbyr);
uint32_t pbr[srbyr] = { 0 };
- std::copy(vpbr.begin(), vpbr.end(), pbr);
+ std::copy_n(vpbr.begin(), srbyr, pbr); // FIXME: currently, copies only 5 records, to be improved
detail::write_n(GetStream(), pbr, sizeof(pbr));
// 20-22. Scale factors
More information about the Liblas-commits
mailing list