pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1839502 - /pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java
Date Tue, 28 Aug 2018 20:32:01 GMT
Author: tilman
Date: Tue Aug 28 20:32:01 2018
New Revision: 1839502

URL: http://svn.apache.org/viewvc?rev=1839502&view=rev
Log:
PDFBOX-4299: simplify handling of negative numbers, as suggested by Adrian Sandor

Modified:
    pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java

Modified: pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java?rev=1839502&r1=1839501&r2=1839502&view=diff
==============================================================================
--- pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java (original)
+++ pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java Tue
Aug 28 20:32:01 2018
@@ -515,7 +515,7 @@ public class CmapSubtable implements Cma
                     p = (p + idDelta) % 65536;
                     if (p < 0)
                     {
-                        p = (p + 65536) % 65536;
+                        p += 65536;
                     }
                 }
                 



Mime
View raw message