You've already forked lazarus-ccr
fpvectorial: Fixes sigsegv in case of a format declared without either the reader or writer but with the other one
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1592 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -771,6 +771,7 @@ begin
|
||||
for i := 0 to Length(GvVectorialFormats) - 1 do
|
||||
if GvVectorialFormats[i].Format = AFormat then
|
||||
begin
|
||||
if GvVectorialFormats[i].WriterClass <> nil then
|
||||
Result := GvVectorialFormats[i].WriterClass.Create;
|
||||
|
||||
Break;
|
||||
@ -792,6 +793,7 @@ begin
|
||||
for i := 0 to Length(GvVectorialFormats) - 1 do
|
||||
if GvVectorialFormats[i].Format = AFormat then
|
||||
begin
|
||||
if GvVectorialFormats[i].ReaderClass <> nil then
|
||||
Result := GvVectorialFormats[i].ReaderClass.Create;
|
||||
|
||||
Break;
|
||||
|
Reference in New Issue
Block a user