Skip to content

Commit

Permalink
Merge pull request EtheaDev#274 from DeveloppeurPascal/master
Browse files Browse the repository at this point in the history
Fixed TSVGIconImageCollection registration for FMX projects
  • Loading branch information
carloBarazzetta authored May 22, 2024
2 parents 7e8ca9d + 4c984dc commit 3c8d406
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Source/SVGIconImageCollection.pas
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ implementation

uses
System.SysUtils
, VCL.Controls
, {$IFDEF DXE4+}System.Messaging{$ELSE}SVGMessaging{$ENDIF};

{ TSVGIconImageCollection }
Expand Down Expand Up @@ -527,4 +528,13 @@ procedure TSVGIconImageCollection.Draw(ACanvas: TCanvas; ARect: TRect; AIndex: I
LSVG.PaintTo(ACanvas.Handle, TRectF.Create(ARect), AProportional);
end;

initialization

{$IF NOT DEFINED(CLR)}
StartClassGroup(VCL.Controls.TControl);
ActivateClassGroup(VCL.Controls.TControl);
GroupDescendentsWith(TSVGIconImageCollection, VCL.Controls.TControl);
{$ENDIF}


end.

0 comments on commit 3c8d406

Please sign in to comment.