You've already forked lazarus-ccr
fpspreadsheet: Fix worksheet crashing when Font #4 is created.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6829 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -447,3 +447,4 @@ msgstr "Die Datei kann nicht geschrieben werden, weil der Name des Arbeitsblatte
|
|||||||
#: fpsstrings.rsyellow
|
#: fpsstrings.rsyellow
|
||||||
msgid "yellow"
|
msgid "yellow"
|
||||||
msgstr "gelb"
|
msgstr "gelb"
|
||||||
|
|
||||||
|
@ -6243,8 +6243,7 @@ begin
|
|||||||
if ACell = nil then
|
if ACell = nil then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
if (AFontIndex < 0) or (AFontIndex >= Workbook.GetFontCount) or (AFontIndex = 4) then
|
if (AFontIndex < 0) or (AFontIndex >= Workbook.GetFontCount) then
|
||||||
// note: Font index 4 is not defined in BIFF
|
|
||||||
raise EFPSpreadsheet.Create(rsInvalidFontIndex);
|
raise EFPSpreadsheet.Create(rsInvalidFontIndex);
|
||||||
|
|
||||||
fmt := Workbook.GetCellFormat(ACell^.FormatIndex);
|
fmt := Workbook.GetCellFormat(ACell^.FormatIndex);
|
||||||
|
Reference in New Issue
Block a user