Skip to content

Commit

Permalink
fixes #1496
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed May 8, 2024
1 parent f332a70 commit 84843ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/distRaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2925,12 +2925,12 @@ SpatRaster SpatRaster::rst_area(bool mask, std::string unit, bool transform, int
mask = false;
} else {
mopt.filenames = opt.filenames;
opt = SpatOptions(opt);
opt.filenames = {""};
}
}

SpatOptions xopt(mopt);

SpatOptions xopt(opt);
if (lonlat) {
bool disagg = false;
SpatExtent extent = getExtent();
Expand Down
2 changes: 1 addition & 1 deletion src/spatBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ SpatOptions::SpatOptions(const SpatOptions &opt) {
datatype_set = opt.datatype_set;
datatype = opt.datatype;
filetype = opt.filetype;
tmpfile = tmpfile + "_2";
tmpfile = opt.tmpfile + "_2";
}

SpatOptions SpatOptions::deepCopy() {
Expand Down

0 comments on commit 84843ad

Please sign in to comment.