- To: Johann Liedl <JLiedl@xxxxxxxxxxxxxx>
- Subject: Re: Bug in VisADCanvasJ2D.setBounds() ??
- From: Bill Hibbard <hibbard@xxxxxxxxxxxxxxxxx>
- Date: Mon, 10 Feb 2003 05:13:37 -0600
Hi Johann, > 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; Right you are. Thanks for finding this. Cheers, Bill
- References:
- Bug in VisADCanvasJ2D.setBounds() ??
- From: Johann Liedl
- Bug in VisADCanvasJ2D.setBounds() ??