Lines 753-760
Link Here
|
753 |
*/ |
753 |
*/ |
754 |
public void removeSheet(int sheetIndex) { |
754 |
public void removeSheet(int sheetIndex) { |
755 |
if (boundsheets.size() > sheetIndex) { |
755 |
if (boundsheets.size() > sheetIndex) { |
756 |
records.remove(records.getBspos() - (boundsheets.size() - 1) + sheetIndex); |
756 |
BoundSheetRecord removedRecord = boundsheets.remove(sheetIndex); |
757 |
boundsheets.remove(sheetIndex); |
757 |
|
|
|
758 |
// keep consistency between "boundsheets" and "records" |
759 |
records.remove(removedRecord); |
758 |
fixTabIdRecord(); |
760 |
fixTabIdRecord(); |
759 |
} |
761 |
} |
760 |
|
762 |
|