Ticket #1469 (closed defect: fixed)

Opened 8 months ago

Last modified 4 months ago

File -> new, view -> spreadsheet -> infinite (?) loop

Reported by: michael Owned by: george
Priority: blocker Milestone: GeoGebra 4.0
Component: Spreadsheet Keywords:
Cc: Estimate (h): 0
Progress (%): 100

Description

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 100 >= 100

at java.util.Vector.elementAt(Unknown Source)
at javax.swing.table.DefaultTableModel.getValueAt(Unknown Source)
at javax.swing.JTable.getValueAt(Unknown Source)
at geogebra.gui.view.spreadsheet.MyTable.setPreferredCellSize(MyTable.java:1481)
at geogebra.gui.view.spreadsheet.MyTable.resizeMarkedCells(MyTable.java:1460)
at geogebra.gui.view.spreadsheet.MyTable.paint(MyTable.java:1232)

http://www.geogebra.org/forum/viewtopic.php?f=8&t=23761

Change History

comment:1 Changed 8 months ago by michael

I think the problem is that these are static so the problem happens if the original file has more than 100 rows

public static HashSet<Point> cellResizeHeightSet = new HashSet<Point>();
public static HashSet<Point> cellResizeWidthSet = new HashSet<Point>();

comment:2 Changed 8 months ago by michael

  • Progress (%) changed from 0 to 100

fixed in [13125]

comment:3 Changed 4 months ago by george

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.