harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apavle...@apache.org
Subject svn commit: r606782 - /harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/IIOParam.java
Date Tue, 25 Dec 2007 10:53:11 GMT
Author: apavlenko
Date: Tue Dec 25 02:53:10 2007
New Revision: 606782

URL: http://svn.apache.org/viewvc?rev=606782&view=rev
Log:
Fixed spec violation - the method setSourceSubsampling() should accept 0 offsets.

Modified:
    harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/IIOParam.java

Modified: harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/IIOParam.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/IIOParam.java?rev=606782&r1=606781&r2=606782&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/IIOParam.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/IIOParam.java
Tue Dec 25 02:53:10 2007
@@ -87,11 +87,11 @@
             throw new IllegalArgumentException("sourceYSubsampling <= 0");
         }
 
-        if (subsamplingXOffset <= 0 || subsamplingXOffset >= sourceXSubsampling) {
+        if ((subsamplingXOffset < 0) || (subsamplingXOffset >= sourceXSubsampling))
{
             throw new IllegalArgumentException("subsamplingXOffset is wrong");
         }
 
-        if (subsamplingYOffset <= 0 || subsamplingYOffset >= sourceYSubsampling) {
+        if ((subsamplingYOffset < 0) || (subsamplingYOffset >= sourceYSubsampling))
{
             throw new IllegalArgumentException("subsamplingYOffset is wrong");
         }
 



Mime
View raw message