mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 13:20:26 +02:00
LCL: TCustomTabControl fixed crash with nil Images property. patch by Luca Olivetti Issue #0035646
git-svn-id: branches/fixes_2_0@61481 -
This commit is contained in:
parent
18a0c25719
commit
1437060d73
@ -1221,7 +1221,12 @@ end;
|
||||
procedure TCustomTabControl.DoImageListChange(Sender: TObject);
|
||||
begin
|
||||
if HandleAllocated then
|
||||
TWSCustomTabControlClass(WidgetSetClass).SetImageList(Self, Images.ResolutionForPPI[ImagesWidth, Font.PixelsPerInch, 1].Resolution); // to-do: support scaling factor
|
||||
begin
|
||||
if Assigned(Images) then
|
||||
TWSCustomTabControlClass(WidgetSetClass).SetImageList(Self, Images.ResolutionForPPI[ImagesWidth, Font.PixelsPerInch, 1].Resolution) // to-do: support scaling factor
|
||||
else
|
||||
TWSCustomTabControlClass(WidgetSetClass).SetImageList(Self, nil);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCustomTabControl.DoImageListDestroyResolutionHandle(
|
||||
|
Loading…
Reference in New Issue
Block a user