diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2012-01-21 09:41:12 +1030 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2012-01-21 09:41:12 +1030 |
commit | a04fca6266bda6d04068f38f16fe492cb6b8677b (patch) | |
tree | 110b4e21d906dbc7d2ce2a8920de8fae0e06eba7 | |
parent | ce1b6c7ca16847f07eeafc29c6503be6fa5a9a3d (diff) |
cairo: use fabs when comparing the transformed line width
as the transform may cause a negative width.
Bug 43441
-rw-r--r-- | poppler/CairoOutputDev.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc index d49b87f7..7ef36df8 100644 --- a/poppler/CairoOutputDev.cc +++ b/poppler/CairoOutputDev.cc @@ -439,7 +439,7 @@ void CairoOutputDev::updateLineWidth(GfxState *state) { /* find out line width in device units */ cairo_user_to_device_distance(cairo, &x, &y); - if (x <= 1.0 && y <= 1.0) { + if (fabs(x) <= 1.0 && fabs(y) <= 1.0) { /* adjust width to at least one device pixel */ x = y = 1.0; cairo_device_to_user_distance(cairo, &x, &y); |