We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3acdf5 commit f3f3e8aCopy full SHA for f3f3e8a
ext/gd/libgd/gd_interpolation.c
@@ -2461,12 +2461,17 @@ int gdTransformAffineBoundingBox(gdRectPtr src, const double affine[6], gdRectPt
2461
if (max.y < extent[i].y)
2462
max.y=extent[i].y;
2463
}
2464
- double twidth = floor(max.x - min.x) - 1;
2465
- double theight = floor(max.y - min.y);
2466
-
2467
- if (twidth < (double)INT_MIN || twidth > (double)INT_MAX ||
2468
- theight < (double)INT_MIN || theight > (double)INT_MAX)
2469
- return GD_FALSE;
+ double twidth = ceil((max.x - min.x));
+ double theight = ceil(max.y - min.y);
+
+ if (twidth < (double)INT_MIN)
+ twidth = (double)INT_MIN;
+ else if (twidth > (double)INT_MAX)
2470
+ twidth = (double)INT_MAX;
2471
+ if (theight < (double)INT_MIN)
2472
+ theight = (double)INT_MIN;
2473
+ else if (theight > (double)INT_MAX)
2474
+ theight = (double)INT_MAX;
2475
2476
bbox->x = (int) min.x;
2477
bbox->y = (int) min.y;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments