Sfoglia il codice sorgente

clearing raster imagelist, avoid rasterize on loading

circular17 3 anni fa
parent
commit
612925fb76
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      bgrasvgimagelist.pas

+ 1 - 1
bgrasvgimagelist.pas

@@ -168,7 +168,6 @@ begin
       FItems[index].Text := XMLConf.GetValue('Item' + i.ToString + '/SVG', '');
       FItems[index].Text := XMLConf.GetValue('Item' + i.ToString + '/SVG', '');
     end;
     end;
   finally
   finally
-    QueryRasterize;
   end;
   end;
 end;
 end;
 
 
@@ -239,6 +238,7 @@ procedure TBGRASVGImageList.Rasterize;
 begin
 begin
   if Assigned(FTargetRasterImageList) then
   if Assigned(FTargetRasterImageList) then
   begin
   begin
+    FTargetRasterImageList.Clear;
     FTargetRasterImageList.Width := Width;
     FTargetRasterImageList.Width := Width;
     FTargetRasterImageList.Height := Height;
     FTargetRasterImageList.Height := Height;
     {$IFDEF DARWIN}
     {$IFDEF DARWIN}