[poppler] poppler/poppler: CairoOutputDev.cc,1.26,1.27
Kristian Høgsberg
krh at freedesktop.org
Thu Jan 26 11:25:09 PST 2006
Update of /cvs/poppler/poppler/poppler
In directory gabe:/tmp/cvs-serv4828/poppler
Modified Files:
CairoOutputDev.cc
Log Message:
2006-01-26 Kristian Høgsberg <krh at redhat.com>
* poppler/CairoOutputDev.cc: Patch from Christian Krause; handle
0-width lines (#5545).
Index: CairoOutputDev.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/CairoOutputDev.cc,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- CairoOutputDev.cc 10 Jan 2006 17:55:59 -0000 1.26
+++ CairoOutputDev.cc 26 Jan 2006 19:25:07 -0000 1.27
@@ -194,7 +194,11 @@
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) {
More information about the poppler
mailing list