Kaydet (Commit) 6137b5f7 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735432 Logically dead code

Change-Id: I6bbbe539d28aefcad04ccae48f2518e78f15b240
üst da5ac820
......@@ -2851,35 +2851,6 @@ void SdrPowerPointImport::ImportPage( SdrPage* pRet, const PptSlidePersistEntry*
aEscherObjListHd.SeekToEndOfRecord( rStCtrl );
}
/* There are a lot of Shapes which are dependent to
the current background color */
if ( rSlidePersist.ePageKind == PPT_SLIDEPAGE )
{
if ( !aProcessData.aBackgroundColoredObjects.empty() )
{
if ( rSlidePersist.pBObj )
{
const SfxPoolItem* pPoolItem = NULL;
const SfxItemSet& rObjectItemSet = rSlidePersist.pBObj->GetMergedItemSet();
//SfxItemState eState = rObjectItemSet.GetItemState( XATTR_FILLCOLOR, sal_False, &pPoolItem );
if ( pPoolItem )
{
SfxItemSet aNewSet(*rObjectItemSet.GetPool());
aNewSet.Put(*pPoolItem);
aNewSet.Put(XFillStyleItem( XFILL_SOLID ));
for (
size_t i = 0, n = aProcessData.aBackgroundColoredObjects.size();
i < n;
++i
) {
aProcessData.aBackgroundColoredObjects[ i ]->SetMergedItemSet(aNewSet);
}
}
}
}
}
if ( rSlidePersist.pBObj )
{
// #i99386# transfer the attributes from the temporary BackgroundObject
......
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