commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r1393926 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PnmImageParser.java
Date Thu, 04 Oct 2012 06:03:31 GMT
Author: damjan
Date: Thu Oct  4 06:03:31 2012
New Revision: 1393926

URL: http://svn.apache.org/viewvc?rev=1393926&view=rev
Log:
Specifying pixel density to image types that do not support it is an error.


Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PnmImageParser.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PnmImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PnmImageParser.java?rev=1393926&r1=1393925&r2=1393926&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PnmImageParser.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PnmImageParser.java
Thu Oct  4 06:03:31 2012
@@ -375,9 +375,6 @@ public class PnmImageParser extends Imag
             params.remove(PARAM_KEY_FORMAT);
         }
         
-        // clear pixel density
-        params.remove(PARAM_KEY_PIXEL_DENSITY);
-
         if (params.size() > 0) {
             Object firstKey = params.keySet().iterator().next();
             throw new ImageWriteException("Unknown parameter: " + firstKey);



Mime
View raw message