From 07fec76dcd82198c5228a45a75543dbf5c59f320 Mon Sep 17 00:00:00 2001 From: Glenn Adams Date: Thu, 17 May 2012 15:53:37 +0000 Subject: [PATCH] Fix findbugs warning. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1339667 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/afp/modca/GraphicsObject.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5