[cairo-bugs] [Bug 31140] PDF export stroke color wrong for black lines

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Oct 28 04:02:20 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=31140

Adrian Johnson <ajohnson at redneon.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Adrian Johnson <ajohnson at redneon.com> 2010-10-28 04:02:19 PDT ---
Fixed with this commit

http://cgit.freedesktop.org/cairo/commit/?id=e23bcfd4300870034f07b1ecd1bb4d2ac95d9785

As an optimisation cairo remembers the currently selected color to avoid
emitting the set color operator before each drawing operation if the color is
the same as the previous drawing operation. The problem here is cairo remembers
the set black used for the 2nd stroke however the 2nd stroke and fill occurs
inside a save/restore pair. After the restore the current pdf color reverts to
the yellow of the first stroke. Fixed by making cairo emit the set color
operator after a restore operator.

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


More information about the cairo-bugs mailing list