- To: visad-list@xxxxxxxxxxxxx
- Subject: Bug in VisADCanvasJ2D.setBounds() ??
- From: "Johann Liedl" <JLiedl@xxxxxxxxxxxxxx>
- Date: Mon, 10 Feb 2003 12:06:21 +0100
Hello,
I think in the method setBounds() in VisADCanvasJ2D is a bug. There are
two lines, where the cast to double is wrong:
b = (double) (height / width);
and
a = (double) (width / height);
I think it should be like that:
b = (double) (height) / width;
and
a = (double) (width) / height;
Hannes
- Follow-Ups:
- Re: Bug in VisADCanvasJ2D.setBounds() ??
- From: Bill Hibbard
- Re: Bug in VisADCanvasJ2D.setBounds() ??