Kaydet (Commit) 619ea0c6 authored tarafından erack's avatar erack Kaydeden (comit) Thorsten Behrens

impress212: #i71731# fixed fill bitmap - pattern import

# User sj <sj@openoffice.org>

 * found as LGPLv3-only fix at svn rev 1167623 (http://svn.apache.org/viewvc?view=revision&revision=1167623)
üst 246c64c6
...@@ -1737,8 +1737,6 @@ void DffPropertyReader::ApplyFillAttributes( SvStream& rIn, SfxItemSet& rSet, co ...@@ -1737,8 +1737,6 @@ void DffPropertyReader::ApplyFillAttributes( SvStream& rIn, SfxItemSet& rSet, co
aCol2 = rManager.MSO_CLR_ToColor( GetPropertyValue( DFF_Prop_fillBackColor ), DFF_Prop_fillBackColor ); aCol2 = rManager.MSO_CLR_ToColor( GetPropertyValue( DFF_Prop_fillBackColor ), DFF_Prop_fillBackColor );
XOBitmap aXOBitmap; XOBitmap aXOBitmap;
// Bitmap einsetzen
aXOBitmap.SetBitmap( aBmp ); aXOBitmap.SetBitmap( aBmp );
aXOBitmap.SetBitmapType( XBITMAP_IMPORT ); aXOBitmap.SetBitmapType( XBITMAP_IMPORT );
...@@ -1747,17 +1745,9 @@ void DffPropertyReader::ApplyFillAttributes( SvStream& rIn, SfxItemSet& rSet, co ...@@ -1747,17 +1745,9 @@ void DffPropertyReader::ApplyFillAttributes( SvStream& rIn, SfxItemSet& rSet, co
aXOBitmap.Bitmap2Array(); aXOBitmap.Bitmap2Array();
aXOBitmap.SetBitmapType( XBITMAP_8X8 ); aXOBitmap.SetBitmapType( XBITMAP_8X8 );
aXOBitmap.SetPixelSize( aBmp.GetSizePixel() ); aXOBitmap.SetPixelSize( aBmp.GetSizePixel() );
aXOBitmap.SetPixelColor( aCol1 );
if( aXOBitmap.GetBackgroundColor() == COL_BLACK ) aXOBitmap.SetBackgroundColor( aCol2 );
{ aXOBitmap.Array2Bitmap();
aXOBitmap.SetPixelColor( aCol1 );
aXOBitmap.SetBackgroundColor( aCol2 );
}
else
{
aXOBitmap.SetPixelColor( aCol2 );
aXOBitmap.SetBackgroundColor( aCol1 );
}
} }
rSet.Put( XFillBitmapItem( String(), aXOBitmap ) ); rSet.Put( XFillBitmapItem( String(), aXOBitmap ) );
} }
......
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