lcl: in TRawImage.ExtractRect, use the direct data copy only when the requested rect.top = 0

git-svn-id: trunk@23608 -
This commit is contained in:
blikblum 2010-02-01 01:35:18 +00:00
parent 4db4e7accc
commit fca28023ef

View File

@ -1311,7 +1311,7 @@ procedure TRawImage.ExtractRect(const ARect: TRect; out ADst: TRawImage);
LineOrder := Description.LineOrder;
//DebugLn'ExtractRawImageDataRect data=',DbgS(DestData),' Size=',DestDataSize);
if SrcWidth = DstWidth
if (SrcWidth = DstWidth) and (ARect.Top = 0)
then begin
if LineOrder = riloTopToBottom
then // copy whole source from beginning