diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index e7bcf43360c..504a040de4c 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -1338,7 +1338,6 @@ void gdImageDashedLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color } else { wid = 1; } - wid = (int)(thick * sin(atan2(dy, dx))); vert = 1; d = 2 * dy - dx; diff --git a/ext/gd/tests/bug52070.phpt b/ext/gd/tests/bug52070.phpt new file mode 100644 index 00000000000..acf56e6b5b2 --- /dev/null +++ b/ext/gd/tests/bug52070.phpt @@ -0,0 +1,25 @@ +--TEST-- +Bug #52070 (imagedashedline() - dashed line sometimes is not visible) +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECT-- +The images are equal. +===DONE=== diff --git a/ext/gd/tests/bug52070.png b/ext/gd/tests/bug52070.png new file mode 100644 index 00000000000..5ce54b121bc Binary files /dev/null and b/ext/gd/tests/bug52070.png differ