pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1704704 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
Date Tue, 22 Sep 2015 19:40:37 GMT
Author: tilman
Date: Tue Sep 22 19:40:34 2015
New Revision: 1704704

URL: http://svn.apache.org/viewvc?rev=1704704&view=rev
Log:
PDFBOX-2987: move segment to correct line

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java?rev=1704704&r1=1704703&r2=1704704&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
Tue Sep 22 19:40:34 2015
@@ -797,12 +797,12 @@ public class PDTrueTypeFont extends PDSi
                 CMAPEncodingEntry[] cmaps = cmapTable.getCmaps();
                 for (int i = 0; i < cmaps.length; i++)
                 {
+                    if (cmaps[i] == null)
+                    {
+                        continue;
+                    }
                     if (CMAPTable.PLATFORM_WINDOWS == cmaps[i].getPlatformId())
                     {
-                        if (cmaps[i] == null)
-                        {
-                            continue;
-                        }
                         if (CMAPTable.ENCODING_UNICODE == cmaps[i].getPlatformEncodingId())
                         {
                             cmapWinUnicode = cmaps[i];



Mime
View raw message