pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1644156 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetLineWidth.java
Date Tue, 09 Dec 2014 19:06:39 GMT
Author: tilman
Date: Tue Dec  9 19:06:39 2014
New Revision: 1644156

URL: http://svn.apache.org/r1644156
Log:
PDFBOX-2505: fix parameter validation from previous commit

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetLineWidth.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetLineWidth.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetLineWidth.java?rev=1644156&r1=1644155&r2=1644156&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetLineWidth.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetLineWidth.java
Tue Dec  9 19:06:39 2014
@@ -35,7 +35,10 @@ public class SetLineWidth extends Operat
     @Override
     public void process(Operator operator, List<COSBase> arguments) throws IOException
     {
-        checkArgumentSize(arguments, 1);
+        if (!checkArgumentSize(arguments, 1))
+        {
+            return;
+        }
         COSNumber width = (COSNumber) arguments.get(0);
         context.getGraphicsState().setLineWidth(width.floatValue());
     }



Mime
View raw message