Skip to content

Commit

Permalink
Move forceError() out of #if block
Browse files Browse the repository at this point in the history
  • Loading branch information
pericles-tpt committed Jan 28, 2025
1 parent 0c11cfb commit 862bbeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion godal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1913,10 +1913,10 @@ GDALDatasetH godalViewshedGenerate(cctx *ctx, GDALRasterBandH bnd, const char *p
#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3, 1, 0)
ret = GDALViewshedGenerate(bnd, pszDriverName, pszTargetRasterName, papszCreationOptions, dfObserverX, dfObserverY, dfObserverHeight, dfTargetHeight, dfVisibleVal, dfInvisibleVal, dfOutOfRangeVal,
dfNoDataVal, dfCurvCoeff, GDALViewshedMode(eMode), dfMaxDistance, nullptr, nullptr, GDALViewshedOutputType(heightMode), nullptr);
#endif
if(ret == nullptr) {
forceError(ctx);
}
#endif
godalUnwrap();
return ret;
}
Expand Down

0 comments on commit 862bbeb

Please sign in to comment.