You've already forked lazarus-ccr
fpspreadsheet: No "invalid index" error message when attempting to save a workbook without reader/writer unit in "uses"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7197 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1199,7 +1199,8 @@ begin
|
|||||||
begin
|
begin
|
||||||
// Bring the priority format to the top
|
// Bring the priority format to the top
|
||||||
idx := IndexOf(APriorityFormat);
|
idx := IndexOf(APriorityFormat);
|
||||||
FList.Exchange(0, idx);
|
if idx > -1 then
|
||||||
|
FList.Exchange(0, idx);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
SetLength(Result, FList.Count);
|
SetLength(Result, FList.Count);
|
||||||
@ -1224,7 +1225,8 @@ begin
|
|||||||
|
|
||||||
if APriorityFormat <> sfidUnknown then
|
if APriorityFormat <> sfidUnknown then
|
||||||
// Restore original order
|
// Restore original order
|
||||||
FList.Exchange(idx, 0);
|
if idx > -1 then
|
||||||
|
FList.Exchange(idx, 0);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TsSpreadFormatRegistry.GetFormatName(AFormatID: TsSpreadFormatID): String;
|
function TsSpreadFormatRegistry.GetFormatName(AFormatID: TsSpreadFormatID): String;
|
||||||
|
Reference in New Issue
Block a user