pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1719530 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/DictionaryEncoding.java
Date Fri, 11 Dec 2015 20:17:17 GMT
Author: jahewson
Date: Fri Dec 11 20:17:17 2015
New Revision: 1719530

URL: http://svn.apache.org/viewvc?rev=1719530&view=rev
Log:
PDFBOX-3152: catch cases where the font's Encoding does not contain a given character (fix)

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/DictionaryEncoding.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/DictionaryEncoding.java?rev=1719530&r1=1719529&r2=1719530&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/DictionaryEncoding.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/DictionaryEncoding.java
Fri Dec 11 20:17:17 2015
@@ -59,7 +59,8 @@ public class DictionaryEncoding extends
             throw new IllegalArgumentException("Invalid encoding: " + baseEncoding);
         }
         
-        codeToName.putAll( this.baseEncoding.codeToName );
+        codeToName.putAll(this.baseEncoding.codeToName);
+        inverted.putAll(this.baseEncoding.inverted);
         applyDifferences();
     }
 
@@ -116,7 +117,8 @@ public class DictionaryEncoding extends
         }
         baseEncoding = base;
 
-        codeToName.putAll( baseEncoding.codeToName );
+        codeToName.putAll(baseEncoding.codeToName);
+        inverted.putAll(baseEncoding.inverted);
         applyDifferences();
     }
 



Mime
View raw message