|
|
@@ -774,11 +774,12 @@ public final class InternalWorkbook { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// also tell the LinkTable about the removed sheet |
|
|
|
// +1 because we already removed it from the count of sheets! |
|
|
|
for(int i = sheetIndex+1;i < getNumSheets()+1;i++) { |
|
|
|
// also update the link-table as otherwise references might point at invalid sheets |
|
|
|
linkTable.removeSheet(i); |
|
|
|
if (linkTable != null) { |
|
|
|
// also tell the LinkTable about the removed sheet |
|
|
|
// +1 because we already removed it from the count of sheets! |
|
|
|
for(int i = sheetIndex+1;i < getNumSheets()+1;i++) { |
|
|
|
linkTable.removeSheet(i); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|