typhoid / jjil

Automatically exported from code.google.com/p/jjil
0 stars 0 forks source link

RgbStretch throws an incorrect exception #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Push an image into a RgbStretch to stretch it at a larger size

What is the expected output? What do you see instead?
Normally, it would run but it throws an exception saying that the image is
taller than the given size.

What version of the product are you using? On what operating system?
Windows Vista/Netbeans/...
R185 of RgbStrech.java

Please provide any additional information below.
Replace the following line in RgbStretch.java:
if (image.getWidth() < this.cWidth || image.getHeight() < this.cHeight) {

By:
if (image.getWidth() > this.cWidth || image.getHeight() > this.cHeight) {

Thanks

Original issue reported on code.google.com by test.sit...@gmail.com on 8 Sep 2008 at 8:20