After updating to the latest XLSRW6 for some bug fixes, we found a new issue with generated files sometimes being corrupt. I traced it to below code change in the following function.
Code: Select all
procedure TXLSNames_Int.AdjustSheetDelete(const ASheetIndex, ACount: integer);
Code: Select all
case N.SimpleName of
xsntNone: begin
FFormulas.AdjustSheetIndex(N.Ptgs,N.PtgsSz,ASheetIndex,-ACount);
N.LocalSheetId := N.LocalSheetId - ACount;
end;
This is in the previous version I used and it works:
Code: Select all
case N.SimpleName of
xsntNone: FFormulas.AdjustSheetIndex(N.Ptgs,N.PtgsSz,ASheetIndex,ACount);