From 3d5fd7e4340a4b2b6cccacc01aa41c232566cf14 Mon Sep 17 00:00:00 2001 From: Jason Crain Date: Mon, 27 Aug 2012 22:42:11 -0500 Subject: [PATCH] Update fill and stroke color in CairoOutputDev::startPage Keep fill_color and stroke_color from falling out of sync with fill_pattern and stroke_pattern. --- poppler/CairoOutputDev.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc index b70183e..6661d19 100644 --- a/poppler/CairoOutputDev.cc +++ b/poppler/CairoOutputDev.cc @@ -242,7 +242,9 @@ void CairoOutputDev::startPage(int pageNum, GfxState *state) { cairo_pattern_destroy(stroke_pattern); fill_pattern = cairo_pattern_create_rgb(0., 0., 0.); + fill_color.r = fill_color.g = fill_color.b = 0; stroke_pattern = cairo_pattern_reference(fill_pattern); + stroke_color.r = stroke_color.g = stroke_color.b = 0; if (text) text->startPage(state); -- 1.7.9.5