mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Copy image data to the target when source and target are different objects
(cherry picked from commit 506b6b0d74)
This commit is contained in:
parent
f4b6255763
commit
1975616ccf
1 changed files with 2 additions and 1 deletions
|
|
@ -58,7 +58,8 @@ begin
|
|||
try
|
||||
Target:= TLazIntfImage.Create(ASource.Width, ASource.Height, [riqfRGB, riqfAlpha]);
|
||||
try
|
||||
if NOT Target.DataDescription.IsEqual(Source.DataDescription) then begin
|
||||
if (not Target.DataDescription.IsEqual(Source.DataDescription)) or (ASource <> ATarget) then
|
||||
begin
|
||||
Target.CopyPixels(Source);
|
||||
BitmapAssign(ATarget, Target);
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue