You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2023/11/26 08:26:54 UTC

svn commit: r1914130 - /pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/gsub/GlyphSubstitutionDataExtractor.java

Author: tilman
Date: Sun Nov 26 08:26:54 2023
New Revision: 1914130

URL: http://svn.apache.org/viewvc?rev=1914130&view=rev
Log:
PDFBOX-5660: optimize

Modified:
    pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/gsub/GlyphSubstitutionDataExtractor.java

Modified: pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/gsub/GlyphSubstitutionDataExtractor.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/gsub/GlyphSubstitutionDataExtractor.java?rev=1914130&r1=1914129&r2=1914130&view=diff
==============================================================================
--- pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/gsub/GlyphSubstitutionDataExtractor.java (original)
+++ pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/gsub/GlyphSubstitutionDataExtractor.java Sun Nov 26 08:26:54 2023
@@ -299,7 +299,7 @@ public class GlyphSubstitutionDataExtrac
     {
         Integer oldValue = glyphSubstitutionMap.put(glyphsToBeSubstituted, newGlyph);
 
-        if (oldValue != null)
+        if (oldValue != null && LOG.isDebugEnabled())
         {
             String message = "For the newGlyph: " + newGlyph + ", newValue: "
                     + glyphsToBeSubstituted + " is trying to override the oldValue: " + oldValue;