Skip to content

Commit 8c3cf3d

Browse files
committed
GDALdllImageLine(): fix copy&paste error in sanity check (not in released version)
1 parent 57595f1 commit 8c3cf3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

alg/llrasterize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ void GDALdllImageLine(int nRasterXSize, int nRasterYSize, int nPartCount,
278278
continue;
279279

280280
// TODO: clamp coordinates to [0, nRasterXSize] * [0, nRasterYSize]
281-
if (!(dfX >= INT_MIN && dfX <= INT_MAX && dfX >= INT_MIN &&
282-
dfX <= INT_MAX && dfX >= INT_MIN && dfX <= INT_MAX &&
283-
dfX >= INT_MIN && dfX <= INT_MAX))
281+
if (!(dfX >= INT_MIN && dfX <= INT_MAX && dfY >= INT_MIN &&
282+
dfY <= INT_MAX && dfXEnd >= INT_MIN && dfXEnd <= INT_MAX &&
283+
dfYEnd >= INT_MIN && dfYEnd <= INT_MAX))
284284
{
285285
CPLErrorOnce(
286286
CE_Warning, CPLE_AppDefined,

0 commit comments

Comments
 (0)