parthipan30 / as3xls

Automatically exported from code.google.com/p/as3xls
0 stars 0 forks source link

Sheet.resize() delete existing values #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load Eaxcel file with some rows, or add some rows
2. do Sheet.resize()

Expected - existing rows will not deleted
Instead - they're deleted

Version - 1.0 Jan 2008

Additional information:
This bug is built in the code of Sheet.resize(), in the lines:

// Add needed columns
for(var row:uint = 0; row < _values.length; row++) {
    for(var col:uint = 0; col < _cols; col++) {
        _values[row][col] = new Cell();
        _values[row][col].dateMode = _dateMode;
    }
}

row and col should start from old _rows and _cols values, instead of zero.

Original issue reported on code.google.com by segal...@gmail.com on 14 Oct 2009 at 2:56

GoogleCodeExporter commented 8 years ago
Thank you for report this issue, I'm facing on this problem too. I changed and 
recompiled the code as you suggested and it's worked as expected. I will back 
to original version when they resolve this issue.

Original comment by dimascso...@gmail.com on 1 Nov 2013 at 12:05