Kaydet (Commit) bdfac6fd authored tarafından Armin Le Grand's avatar Armin Le Grand Kaydeden (comit) Caolán McNamara

Corrected bitmap scaler to not create 24bit outputs for scaling masks/alphas

(cherry picked from commit 61e12761)

Change-Id: Ic358251ac6646b1fd8c8323171bb48958236f407
üst d959ff60
......@@ -1179,6 +1179,7 @@ sal_Bool Bitmap::ImplScaleInterpolate( const double& rScaleX, const double& rSca
if( bRet )
{
bRet = sal_False;
const Bitmap aOriginal(*this);
*this = aNewBmp;
aNewBmp = Bitmap( Size( nNewWidth, nNewHeight ), 24 );
pReadAcc = AcquireReadAccess();
......@@ -1249,7 +1250,7 @@ sal_Bool Bitmap::ImplScaleInterpolate( const double& rScaleX, const double& rSca
if( bRet )
{
ImplAdaptBitCount(aNewBmp);
aOriginal.ImplAdaptBitCount(aNewBmp);
*this = aNewBmp;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment