[gs-bugs] [Bug 691118] PDF file mis-rendered

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Mon Jun 6 21:10:04 UTC 2011


Robin Watts <robin.watts at artifex.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|christinedelight.top85 at yaho |
                   |o.com                       |
         Resolution|                            |FIXED

--- Comment #5 from Robin Watts <robin.watts at artifex.com> 2011-06-06 21:10:02 UTC ---
Fixed in:

commit f92a542b0475a12f4724d3e57f232cafbe17ce50
Author: Robin Watts <Robin.Watts at artifex.com>
Date:   Mon Jun 6 21:00:41 2011 +0100

    Bug 691118: Fix radial shading bug

    Bug 691118 describes a bug with radial shadings in a PDF file.

    Back in r7982 (git 69a43b0) (16 May 2007) Igor introduced some cunning
    code to speed radial shadings. It would spot that the shading was large
    in comparison with the area being filled, and produce a smaller,
    equivalent shading.

    Essentially, it would take the destination rectangle, and figure out
    where in the shading the 'extremes' of that rectangle would come from
    (allowing for distortion in shape generation) and ensure that the newly
    generated shading covered the same area.

    Either the corners of the rectangle could be extremes, or points on the
    side. The code for the points on the sides was broken due to a typo
    causing the X and Y cases to be switched.

    All that is required to solve the bug is to change the == to !=.

    In researching the problem however, I recommented lots of the code to
    make it more comprehensible (to me at least!) along with introducing
    some temporary variables to make it clearer and avoid needless
    recomputation of values. I am committing this as I believe it's a step
    forward for the code, even though it doesn't actually make a

    48 differences in non-pdfwrite/ps2write tests. 11 in pdfwrite, 17 in
    ps2write. Checked with bmpcmp, all unnoticable to the naked eye, so
    presumably progressions.

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list