Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Small SpreadSheet problem

The "Save SpreadSheet file" command is causing an
ArrayIndexOutOfBoundsException.  This is because the loops that cycle
through the HorizLabels and VertLabels have the variables NumVisX and
NumVisY switched.

They now read:

      for (int j=0; j<NumVisY; j++) {
        global = global + ' ' + HorizLabel[j].getSize().width;
      }
      global = global + '\n' +
        "rows =";
      for (int i=0; i<NumVisX; i++) {
        global = global + ' ' + VertLabel[i].getSize().height;
      }


They should read:

      for (int j=0; j<NumVisX; j++) {
        global = global + ' ' + HorizLabel[j].getSize().width;
      }
      global = global + '\n' +
        "rows =";
      for (int i=0; i<NumVisY; i++) {
        global = global + ' ' + VertLabel[i].getSize().height;
      }



john

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