From: Glenn Adams Date: Thu, 17 May 2012 15:53:37 +0000 (+0000) Subject: Fix findbugs warning. X-Git-Tag: fop-1_1rc1old~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=07fec76dcd82198c5228a45a75543dbf5c59f320;p=xmlgraphics-fop.git Fix findbugs warning. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1339667 13f79535-47bb-0310-9956-ffa450edef68 --- 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; }