NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: Bug in VisADCanvasJ2D.setBounds() ??

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


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: