Skip to content

Commit

Permalink
Fix queries in multiple files with LASreaderMerged
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Romain committed Nov 21, 2023
1 parent d76f637 commit a2b7f31
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/LASlib/lasreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ LASreader::LASreader()
read_complex = 0;
index = 0;
copc_index = 0;
copc_resolution = 0;
copc_depth = I32_MAX;
filter = 0;
transform = 0;
ignore = 0;
inside = 0;
inside_depth = 0;
t_ll_x = 0;
t_ll_y = 0;
t_size = 0;
Expand Down Expand Up @@ -105,11 +108,8 @@ void LASreader::set_index(LASindex* index)

void LASreader::set_copcindex(COPCindex* copc_index)
{
if (!this->copc_index)
{
if (this->copc_index) delete this->copc_index;
this->copc_index = copc_index;
}
if (this->copc_index) delete this->copc_index;
this->copc_index = copc_index;
}

void LASreader::set_filter(LASfilter* filter)
Expand Down

0 comments on commit a2b7f31

Please sign in to comment.