summaryrefslogtreecommitdiff
path: root/poppler
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2006-01-26 19:25:07 +0000
committerKristian Høgsberg <krh@redhat.com>2006-01-26 19:25:07 +0000
commitc805e25f2f074640e4345f8b71eef8d7de677109 (patch)
tree68c5b59a2cc41e89e3690e5cf8f3fa941661572b /poppler
parent4f48abcd4c21460d4c5b718a7ba18cdceb30c2d1 (diff)
2006-01-26 Kristian Høgsberg <krh@redhat.com>
* poppler/CairoOutputDev.cc: Patch from Christian Krause; handle 0-width lines (#5545).
Diffstat (limited to 'poppler')
-rw-r--r--poppler/CairoOutputDev.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index d7f16612..3a5f5b9f 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -194,7 +194,11 @@ void CairoOutputDev::updateMiterLimit(GfxState *state) {
void CairoOutputDev::updateLineWidth(GfxState *state) {
LOG(printf ("line width: %f\n", state->getTransformedLineWidth()));
- cairo_set_line_width (cairo, state->getTransformedLineWidth());
+ if (state->getTransformedLineWidth() == 0.0) {
+ cairo_set_line_width (cairo, 72.0/300.0);
+ } else {
+ cairo_set_line_width (cairo, state->getTransformedLineWidth());
+ }
}
void CairoOutputDev::updateFillColor(GfxState *state) {