Kaydet (Commit) 6c6f78c6 authored tarafından Julien Nabet's avatar Julien Nabet

cppcheck: multiCondition

2 "else if" with same condition, one of them is wrong and it seems here the first one.
More details here: http://nabble.documentfoundation.org/Cppcheck-reports-else-if-condition-matches-previous-condition-vcl-td4104270.html

Change-Id: I818cfa879a41c5818c429acc1645b1ee1f8b5103
üst 2df53ef5
......@@ -297,7 +297,7 @@ void ImplImageBmp::Draw( sal_uInt16 nPos, OutputDevice* pOutDev,
{
if( aTmpBmpEx.IsAlpha() )
aTmpBmpEx = BitmapEx( aTmpBmp, aTmpBmpEx.GetAlpha() );
else if( aTmpBmpEx.IsAlpha() )
else if( aTmpBmpEx.IsTransparent() )
aTmpBmpEx = BitmapEx( aTmpBmp, aTmpBmpEx.GetMask() );
}
......
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