pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1677476 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type1CharStringParser.java
Date Sun, 03 May 2015 18:39:06 GMT
Author: jahewson
Date: Sun May  3 18:39:06 2015
New Revision: 1677476

URL: http://svn.apache.org/r1677476
Log:
PDFBOX-2170: Bug fix in div command matching, thanks to Tilman Hausherr

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type1CharStringParser.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type1CharStringParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type1CharStringParser.java?rev=1677476&r1=1677475&r2=1677476&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type1CharStringParser.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type1CharStringParser.java Sun
May  3 18:39:06 2015
@@ -177,7 +177,7 @@ public class Type1CharStringParser
         CharStringCommand command = (CharStringCommand) item;
 
         // div
-        if (command.getKey().getValue()[0] == 12 && command.getKey().getValue()[0]
== 12)
+        if (command.getKey().getValue()[0] == 12 && command.getKey().getValue()[1]
== 12)
         {
             int a = (Integer) sequence.remove(sequence.size() - 1);
             int b = (Integer) sequence.remove(sequence.size() - 1);



Mime
View raw message