Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 65637 invoked from network); 25 Dec 2007 10:53:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Dec 2007 10:53:33 -0000 Received: (qmail 98670 invoked by uid 500); 25 Dec 2007 10:53:22 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 98650 invoked by uid 500); 25 Dec 2007 10:53:22 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 98641 invoked by uid 99); 25 Dec 2007 10:53:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Dec 2007 02:53:22 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Dec 2007 10:53:08 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8E4681A9832; Tue, 25 Dec 2007 02:53:11 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@harmony.apache.org From: apavlenko@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071225105311.8E4681A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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"); }