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
|
finally
|
||||||
FreeAndNil(Doc);
|
FreeAndNil(Doc);
|
||||||
end;
|
end;
|
||||||
end else
|
end;
|
||||||
raise EFPSpreadsheetReader.Create(err);
|
|
||||||
finally
|
finally
|
||||||
XMLStream.Free;
|
XMLStream.Free;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// Active sheet
|
// Active sheet
|
||||||
if FActiveSheet <> '' then
|
if FActiveSheet <> '' then
|
||||||
sheet := (FWorkbook as TsWorkbook).GetWorksheetByName(FActiveSheet) else
|
sheet := (FWorkbook as TsWorkbook).GetWorksheetByName(FActiveSheet)
|
||||||
|
else
|
||||||
sheet := (FWorkbook as TsWorkbook).GetWorksheetByIndex(0);
|
sheet := (FWorkbook as TsWorkbook).GetWorksheetByIndex(0);
|
||||||
(FWorkbook as TsWorkbook).SelectWorksheet(sheet);
|
(FWorkbook as TsWorkbook).SelectWorksheet(sheet);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user