]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Remove JDK1.6 dependency.
authorGlenn Adams <gadams@apache.org>
Thu, 17 May 2012 17:22:20 +0000 (17:22 +0000)
committerGlenn Adams <gadams@apache.org>
Thu, 17 May 2012 17:22:20 +0000 (17:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1339723 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/afp/modca/GraphicsObject.java

index 6dc6bb53f541f46619866241a8f72a935d71acee..7284c69f3515abc3dd71df32085b36d27be8ebc8 100644 (file)
@@ -195,7 +195,7 @@ public class GraphicsObject extends AbstractDataObject {
      * @param lineWidth the line width multiplier
      */
     public void setLineWidth(float lineWidth) {
-        float epsilon = Float.MIN_NORMAL;
+        float epsilon = Float.intBitsToFloat ( 0x00800000 ); // Float.MIN_NORMAL (JDK1.6)
         if ( Math.abs ( graphicsState.lineWidth - lineWidth ) > epsilon ) {
             addObject(new GraphicsSetFractionalLineWidth(lineWidth));
             graphicsState.lineWidth = lineWidth;