[Poppler-bugs] [Bug 91931] [pdftocairo] Wrong result after convertion

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Dec 21 23:11:02 PST 2015


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

--- Comment #11 from Jason Crain <jason at aquaticape.us> ---
Created attachment 120648
  --> https://bugs.freedesktop.org/attachment.cgi?id=120648&action=edit
use shape mask with soft mask

The problem is that the code doesn't handle the case where both the soft mask
and a knockout subgroup's shape are set.  The 'shape' pattern doesn't get
destroyed when painting the subgroup so it sticks around and changes the
rendering of the parent knockout group.

This patch moves some code around so the shape is cleared both when using and
not using a soft mask.  The shape is propagated up to any higher level groups
and the pattern is destroyed after being used.

Also fixes a memory leak I found while testing. 
CairoOutputDev::beginTransparencyGroup calls cairo_reference(cairo_shape) but
it's not matched by a cairo_destroy.  This removes the cairo_reference call
because we already keep track of cairo_shape's lifetime with knockoutCount.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20151222/e627e00c/attachment.html>


More information about the Poppler-bugs mailing list