Skip to content

Commit

Permalink
don't addUserVLRs unless the user set something
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Feb 20, 2020
1 parent 57abd25 commit 8985205
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion io/LasWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ void LasWriter::readyTable(PointTableRef table)
addPipelineVlr();
}
addExtraBytesVlr();
addUserVlrs();
if (!m_userVLRs->empty())
addUserVlrs();
addForwardVlrs();
}

Expand Down

2 comments on commit 8985205

@abellgithub
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ?

@hobu
Copy link
Member Author

@hobu hobu commented on 8985205 Feb 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we were tossing this and using your branch.

Please sign in to comment.