Commit 16812829 authored by Jason Crain's avatar Jason Crain Committed by Carlos Garcia Campos

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.

https://bugs.freedesktop.org/show_bug.cgi?id=54526
parent c93702be
......@@ -344,7 +344,7 @@ _poppler_page_render (PopplerPage *page,
if (!printing && page->text == NULL) {
page->text = new TextPage(gFalse);
page->text = new TextPage (gFalse);
output_dev->setTextPage (page->text);
}
/* NOTE: instead of passing -1 we should/could use cairo_clip_extents()
......
......@@ -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);
......
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