Author: sebb
Date: Sun Oct  9 12:54:53 2016
New Revision: 1763968

URL: http://svn.apache.org/viewvc?rev=1763968&view=rev
Log:
Use same encoding for both x and y axis units

Modified:
    
commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkScal.java

Modified: 
commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkScal.java
URL: 
http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkScal.java?rev=1763968&r1=1763967&r2=1763968&view=diff
==============================================================================
--- 
commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkScal.java
 (original)
+++ 
commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkScal.java
 Sun Oct  9 12:54:53 2016
@@ -50,7 +50,7 @@ public class PngChunkScal extends PngChu
          throw new ImageReadException("PNG sCAL chunk missing the y axis 
value.");
       }
 
-      final String yStr = new String(bytes, yIndex, length - yIndex);
+      final String yStr = new String(bytes, yIndex, length - yIndex, 
"ISO-8859-1");
       unitsPerPixelYAxis = toDouble(yStr);
    }
 


Reply via email to