Commit 6b14c18d authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

[cairo] Make sure we always use a new path in doPath()

Fixes document
http://acroeng.adobe.com/Test_Files/images/transparency/Untitled-2.pdf
when rendering with cairo backend.
parent 4f71d64c
......@@ -618,6 +618,7 @@ void CairoOutputDev::updateRender(GfxState *state) {
void CairoOutputDev::doPath(cairo_t *cairo, GfxState *state, GfxPath *path) {
GfxSubpath *subpath;
int i, j;
cairo_new_path (cairo);
for (i = 0; i < path->getNumSubpaths(); ++i) {
subpath = path->getSubpath(i);
if (subpath->getNumPoints() > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment