Skip to content

Commit

Permalink
Fix compiling for Lazarus 3.0 RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
ollydev committed Jul 29, 2023
1 parent d124c64 commit 5c59d45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/package/simba.package_components.pas
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
interface

uses
classes, sysutils, forms, controls, graphics, stdctrls, extctrls, grids,
classes, sysutils, forms, controls, graphics, stdctrls, extctrls, grids, LCLVersion,
simba.package;

type
Expand Down Expand Up @@ -74,7 +74,7 @@ TVersionInfo = class
procedure DoLineWrapping(Foo: PtrInt);
procedure DoFontCalculate;

procedure DrawCellText(aCol, aRow: Integer; aRect: TRect; aState: TGridDrawState; aText: String); override;
procedure DrawCellText(aCol, aRow: Integer; aRect: TRect; aState: TGridDrawState; {$if LCL_FULLVERSION >= 3000001}const{$ENDIF} aText: String); override;
procedure DrawFocusRect(aCol, aRow: Integer; ARect: TRect); override;
procedure PrepareCanvas(aCol, aRow: Integer; aState: TGridDrawState); override;
public
Expand Down Expand Up @@ -561,7 +561,7 @@ procedure TPackageVersionGrid.DoOnResize;
Application.QueueAsyncCall(@DoLineWrapping, 0);
end;

procedure TPackageVersionGrid.DrawCellText(aCol, aRow: Integer; aRect: TRect; aState: TGridDrawState; aText: String);
procedure TPackageVersionGrid.DrawCellText(aCol, aRow: Integer; aRect: TRect; aState: TGridDrawState; {$if LCL_FULLVERSION >= 3000001}const{$ENDIF} aText: String);
var
Data: TObject;
Info: TVersionInfo absolute Data;
Expand Down

0 comments on commit 5c59d45

Please sign in to comment.