pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1720048 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotationPolygon.java
Date Mon, 14 Dec 2015 23:36:01 GMT
Author: tilman
Date: Mon Dec 14 23:36:01 2015
New Revision: 1720048

URL: http://svn.apache.org/viewvc?rev=1720048&view=rev
Log:
PDFBOX-3164: correct splitting of the vertices; make method called in constructor final

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotationPolygon.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotationPolygon.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotationPolygon.java?rev=1720048&r1=1720047&r2=1720048&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotationPolygon.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotationPolygon.java
Mon Dec 14 23:36:01 2015
@@ -94,7 +94,7 @@ public class FDFAnnotationPolygon extend
             {
                 throw new IOException("Error: missing element 'vertices'");
             }
-            String[] verticesValues = vertices.split(",");
+            String[] verticesValues = vertices.split(",|;");
             float[] values = new float[verticesValues.length];
             for (int i = 0; i < verticesValues.length; i++)
             {
@@ -143,7 +143,7 @@ public class FDFAnnotationPolygon extend
      *
      * @param color The interior color of the drawn area.
      */
-    public void setInteriorColor(Color color)
+    public final void setInteriorColor(Color color)
     {
         COSArray array = null;
         if (color != null)



Mime
View raw message