mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 14:29:31 +02:00
lcl: don't copy image data if source does not have it (#0011550)
git-svn-id: trunk@15569 -
This commit is contained in:
parent
6ba52ea68e
commit
14ecdf824d
@ -1414,6 +1414,9 @@ begin
|
||||
Exit;
|
||||
end;
|
||||
|
||||
if Data = nil then Exit;
|
||||
if DataSize = 0 then Exit;
|
||||
|
||||
// allocate some space
|
||||
ADst.CreateData(False);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user