diff options
author | Rüdiger Timm <rt@openoffice.org> | 2003-04-24 09:31:38 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2003-04-24 09:31:38 +0000 |
commit | 3762603568b6854fafcb986f0dfdc0e9e2b67189 (patch) | |
tree | 43abf55230bdf7f801d773116e74a3df3de7467d /vcl | |
parent | dfda853fcde7a263ee98e84c246b1b9dfaf8e624 (diff) |
INTEGRATION: CWS thb01 (1.11.26); FILE MERGED
2003/04/23 17:17:44 thb 1.11.26.1: #109044# Update size of fetched bitmap before accessing pixel
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/outdev2.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/vcl/source/gdi/outdev2.cxx b/vcl/source/gdi/outdev2.cxx index ae59b229ac51..22129fb7323f 100644 --- a/vcl/source/gdi/outdev2.cxx +++ b/vcl/source/gdi/outdev2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: outdev2.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: hr $ $Date: 2003-03-27 17:57:59 $ + * last change: $Author: rt $ $Date: 2003-04-24 10:31:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1487,6 +1487,14 @@ void OutputDevice::ImplDrawAlpha( const Bitmap& rBmp, const AlphaMask& rAlpha, GDIMetaFile* pOldMetaFile = mpMetaFile; mpMetaFile = NULL; const BOOL bOldMap = mbMap; mbMap = FALSE; Bitmap aBmp( GetBitmap( aDstRect.TopLeft(), aDstRect.GetSize() ) ); + + // #109044# The generated bitmap need not necessarily be + // of aDstRect dimensions, it's internally clipped to + // window bounds. Thus, we correct the dest size here, + // since we later use it (in nDstWidth/Height) for pixel + // access) + aDstRect.SetSize( aBmp.GetSizePixel() ); + BitmapColor aDstCol; const long nSrcWidth = aBmpRect.GetWidth(), nSrcHeight = aBmpRect.GetHeight(); const long nDstWidth = aDstRect.GetWidth(), nDstHeight = aDstRect.GetHeight(); |