mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 20:13:50 +02:00
LCL: TRawImage.PerformEffect: first check description then allocate mem
git-svn-id: trunk@34801 -
This commit is contained in:
parent
9adcf1b232
commit
6776c76423
@ -1631,6 +1631,10 @@ var
|
||||
P: Pointer;
|
||||
i, j: integer;
|
||||
begin
|
||||
// check here for Description. Only RGBA data can be processed here.
|
||||
if not CheckDescription then
|
||||
Exit;
|
||||
|
||||
if CreateNewData then
|
||||
begin
|
||||
GetMem(AData, DataSize);
|
||||
@ -1643,11 +1647,6 @@ begin
|
||||
AData := P;
|
||||
end;
|
||||
|
||||
// check here for Description. Only RGBA data can be processed here.
|
||||
if not CheckDescription then
|
||||
Exit;
|
||||
|
||||
|
||||
case ADrawEffect of
|
||||
gdeNormal: ;
|
||||
gdeDisabled:
|
||||
|
Loading…
Reference in New Issue
Block a user