[libGD] #100 [Comment added] spurious horizontal line drawn by gdImageFilledPolygon; fix attached

[email protected] (libGD) Tue, 07 Aug 2007 04:48:40 +0000
Newsgroups php.gd.bugs
Message-ID <[email protected]>
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#100 - spurious horizontal line drawn by gdImageFilledPolygon; fix attached
User who did this - Ducky Sherwood (duckysherwood)

----------
Okay, I believe I have a better patch.  

There are some cases where two vertices in a row will have the same y-coordinate.  When calculating the intercept of the line, it didn't calculate the intercept (which is understandable, since rise/run is infinity when run is 0!)  

I made it so that if y1=y2, then it just uses x2 as the y-intercept.  That seems to get rid of all my horizontal line problems.

I have attached a patch and a test case.
----------

There was one or more files attached to this comment.

More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=100#comment317

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.