diff options
author | Christoph M. Becker <cmb@php.net> | 2015-07-13 01:29:01 +0200 |
---|---|---|
committer | Christoph M. Becker <cmb@php.net> | 2015-07-13 01:29:01 +0200 |
commit | d87a3312e30931d0f6c2ea6a6ced13fc7b217e65 (patch) | |
tree | 779271d342e46ffeb57e2e0547c4023ff9c57cd0 /ext/xmlreader/php_xmlreader.c | |
parent | ecd32e437e81270221092726eb1bdac6917994e0 (diff) | |
download | php-git-d87a3312e30931d0f6c2ea6a6ced13fc7b217e65.tar.gz |
Fix #53154: Zero-height rectangle has whiskers
To avoid drawing the corner pixels twice, gdImageRectangle() draws the vertical
lines 2 points shorter than the actual side of the rectangle. However, this
causes "whiskers" for rectangles with height 0. This patch fixes this issue and
at the same time optimizes the algorithm by drawing only a single line for zero
height and zero width rectangles.
Diffstat (limited to 'ext/xmlreader/php_xmlreader.c')
0 files changed, 0 insertions, 0 deletions