You've already forked lazarus-ccr
fpspreadsheet: Fix ods reader crashing when settings.xml is missing.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8943 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -3092,15 +3092,15 @@ begin
|
||||
finally
|
||||
FreeAndNil(Doc);
|
||||
end;
|
||||
end else
|
||||
raise EFPSpreadsheetReader.Create(err);
|
||||
end;
|
||||
finally
|
||||
XMLStream.Free;
|
||||
end;
|
||||
|
||||
// Active sheet
|
||||
if FActiveSheet <> '' then
|
||||
sheet := (FWorkbook as TsWorkbook).GetWorksheetByName(FActiveSheet) else
|
||||
sheet := (FWorkbook as TsWorkbook).GetWorksheetByName(FActiveSheet)
|
||||
else
|
||||
sheet := (FWorkbook as TsWorkbook).GetWorksheetByIndex(0);
|
||||
(FWorkbook as TsWorkbook).SelectWorksheet(sheet);
|
||||
|
||||
|
Reference in New Issue
Block a user