pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1827129 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java
Date Sun, 18 Mar 2018 07:12:28 GMT
Author: msahyoun
Date: Sun Mar 18 07:12:28 2018
New Revision: 1827129

URL: http://svn.apache.org/viewvc?rev=1827129&view=rev
Log:
PDFBOX-4134: fix typo leading to wrong comparison

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java?rev=1827129&r1=1827128&r2=1827129&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java Sun Mar 18
07:12:28 2018
@@ -376,7 +376,7 @@ public abstract class PDFont implements
     public float getAverageFontWidth()
     {
         float average;
-        if (Float.compare(avgFontWidth, 0.0f) != 0.0f)
+        if (Float.compare(avgFontWidth, 0.0f) != 0)
         {
             average = avgFontWidth;
         }



Mime
View raw message