You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ja...@apache.org on 2016/08/10 18:29:52 UTC

svn commit: r1755795 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Author: jahewson
Date: Wed Aug 10 18:29:52 2016
New Revision: 1755795

URL: http://svn.apache.org/viewvc?rev=1755795&view=rev
Log:
PDFBOX-3459: undo IntelliJ's meddling

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java?rev=1755795&r1=1755794&r2=1755795&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java Wed Aug 10 18:29:52 2016
@@ -87,22 +87,27 @@ public class PageDrawer extends PDFGraph
 
     // parent document renderer - note: this is needed for not-yet-implemented resource caching
     private final PDFRenderer renderer;
-    // glyph caches
-    private final Map<PDFont, GlyphCache> glyphCaches = new HashMap<PDFont, GlyphCache>();
+    
     // the graphics device to draw to, xform is the initial transform of the device (i.e. DPI)
     private Graphics2D graphics;
     private AffineTransform xform;
+    
     // the page box to draw (usually the crop box but may be another)
     private PDRectangle pageSize;
+    
     // clipping winding rule used for the clipping path
     private int clipWindingRule = -1;
     private GeneralPath linePath = new GeneralPath();
+    
     // last clipping path
     private Area lastClip;
+    
     // buffered clipping area for text being drawn
     private Area textClippingArea;
-    
-    
+
+    // glyph caches
+    private final Map<PDFont, GlyphCache> glyphCaches = new HashMap<PDFont, GlyphCache>();
+
     /**
      * Constructor.
      *
@@ -329,7 +334,7 @@ public class PageDrawer extends PDFGraph
             glyphCaches.put(font, cache);
         }
         
-        // cache glyph path if is not already cached
+        // cache glyph path if is not already cache
         GeneralPath path = cache.getPathForCharacterCode(code);
         if (path == null)
         {