Oops. Constructor should actually do something.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@560 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC
2011-04-02 03:43:12 +00:00
parent 62c6f9811b
commit 848f225e2f

View File

@@ -36,6 +36,8 @@ public class TJScalingFactor {
public TJScalingFactor(int num, int denom) throws Exception { public TJScalingFactor(int num, int denom) throws Exception {
if(num < 1 || denom < 1) if(num < 1 || denom < 1)
throw new Exception("Numerator and denominator must be >= 1"); throw new Exception("Numerator and denominator must be >= 1");
this.num = num;
this.denom = denom;
} }
/** /**