diff options
author | Glenn Adams <gadams@apache.org> | 2012-05-17 15:53:37 +0000 |
---|---|---|
committer | Glenn Adams <gadams@apache.org> | 2012-05-17 15:53:37 +0000 |
commit | 07fec76dcd82198c5228a45a75543dbf5c59f320 (patch) | |
tree | 20662a5834e12d3a2d2d901eb5778b38ee5bfb4e | |
parent | 5a0e10ae9de3fdac3f68f909fce6fddea524a8d5 (diff) | |
download | xmlgraphics-fop-07fec76dcd82198c5228a45a75543dbf5c59f320.tar.gz xmlgraphics-fop-07fec76dcd82198c5228a45a75543dbf5c59f320.zip |
Fix findbugs warning.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1339667 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/afp/modca/GraphicsObject.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/afp/modca/GraphicsObject.java b/src/java/org/apache/fop/afp/modca/GraphicsObject.java index 05cdf5eb8..6dc6bb53f 100644 --- a/src/java/org/apache/fop/afp/modca/GraphicsObject.java +++ b/src/java/org/apache/fop/afp/modca/GraphicsObject.java @@ -195,7 +195,8 @@ public class GraphicsObject extends AbstractDataObject { * @param lineWidth the line width multiplier */ public void setLineWidth(float lineWidth) { - if (lineWidth != graphicsState.lineWidth) { + float epsilon = Float.MIN_NORMAL; + if ( Math.abs ( graphicsState.lineWidth - lineWidth ) > epsilon ) { addObject(new GraphicsSetFractionalLineWidth(lineWidth)); graphicsState.lineWidth = lineWidth; } |