Browse Source

* Fix AV

git-svn-id: trunk@41591 -
michael 6 years ago
parent
commit
ae5e97962f
1 changed files with 2 additions and 4 deletions
  1. 2 4
      packages/fcl-pdf/src/fppdf.pp

+ 2 - 4
packages/fcl-pdf/src/fppdf.pp

@@ -2857,13 +2857,11 @@ begin
   if Length(FStreamed)=0 then
     begin
     if Collection.Owner is TPDFDocument then
-      begin
-      Opts:=TPDFDocument(Collection.Owner).ImageStreamOptions;
-      end
+      Opts:=TPDFDocument(Collection.Owner).ImageStreamOptions
     else
       Opts:=[isoCompressed,isoTransparent];
+    CreateStreamedData(Opts);
     end;
-  CreateStreamedData(Opts);
   Result:=FStreamed;
 end;