IconFontsImageList icon indicating copy to clipboard operation
IconFontsImageList copied to clipboard

for correct load SVG from stream need adden to public TSVGGraphic in SVGIconImage.pas

Open alex21mir opened this issue 10 months ago • 0 comments

class function TSVGGraphic.CanLoadFromStream(Stream: TStream): Boolean; var Header: Array[0..4] of AnsiChar; P: Int64; TstHdr:ansistring; begin P := Stream.Position; TstHdr:='<?xml'; try Result := (Stream.Read(Header[0], SizeOf(Header)) = SizeOf(Header)) and CompareMem(@Header[0], @TstHdr[1], SizeOf(Header)); finally Stream.Position := P; end; end;

alex21mir avatar Feb 07 '25 00:02 alex21mir