Skip to content

Commit

Permalink
set the m_data size to the GetDataRecordLength, not ePointSize3
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Jul 2, 2014
1 parent 066cd27 commit 6e86573
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/point.cpp
Expand Up @@ -69,17 +69,17 @@ Point::Point()
, m_default_header(DefaultHeader::get())

{
m_data.resize(ePointSize3);
m_data.assign(ePointSize3, 0);
m_data.resize(DefaultHeader::get().GetDataRecordLength());
m_data.assign(DefaultHeader::get().GetDataRecordLength(), 0);
}

Point::Point(Header const* hdr)
:
m_header(hdr)
, m_default_header(DefaultHeader::get())
{
m_data.resize(ePointSize3);
m_data.assign(ePointSize3, 0);
m_data.resize(hdr->GetDataRecordLength());
m_data.assign(hdr->GetDataRecordLength(), 0);
}

Point::Point(Point const& other)
Expand Down

0 comments on commit 6e86573

Please sign in to comment.