[Liblas-commits] hg: point to first element of the array when
writing blanks
liblas-commits at liblas.org
liblas-commits at liblas.org
Fri May 7 11:09:08 EDT 2010
changeset 0887f823a17d in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=0887f823a17d
summary: point to first element of the array when writing blanks
diffstat:
src/detail/writer/point.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r d452828997c9 -r 0887f823a17d src/detail/writer/point.cpp
--- a/src/detail/writer/point.cpp Fri May 07 09:15:35 2010 -0500
+++ b/src/detail/writer/point.cpp Fri May 07 10:09:02 2010 -0500
@@ -176,12 +176,12 @@
if (data.size() == 0) {
- detail::write_n(GetStream(), m_blanks, static_cast<std::streamsize>(size));
+ detail::write_n(GetStream(), *m_blanks, static_cast<std::streamsize>(size));
} else if (data.size() < size){
int16_t difference = size - data.size();
detail::write_n(GetStream(), data.front(), data.size());
- detail::write_n(GetStream(), m_blanks, static_cast<std::streamsize>(difference));
+ detail::write_n(GetStream(), *m_blanks, static_cast<std::streamsize>(difference));
} else {
detail::write_n(GetStream(), data.front(), static_cast<std::streamsize>(size));
More information about the Liblas-commits
mailing list