aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/afp/modca/GraphicsObject.java3
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;
}