[Poppler-bugs] [Bug 25189] division by zero in Gfx::doAxialShFill

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Nov 20 06:51:23 PST 2009


--- Comment #5 from M.Drochner at fz-juelich.de  2009-11-20 06:51:23 PST ---
The problem is not the intersection code but a somewhat arbitrary test that
prevents it from being used: dx is non-zero but less than 0.01 where the
problem occurs. So dxZero gets set unnecessarily.
My impression is that a axial shading with both "Coords" set to exactly
the same value is invalid, so why not bail out completely in that case?
I'll append a new patch which removes the problematic test, but does not
reject the "dxZero && dyZero" case yet -- perhaps I've missed some clause
in the PDF spec. With that patch, everything works well for me.

Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the Poppler-bugs mailing list