summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-25 10:42:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-25 12:33:21 +0000
commit6137b5f72f5ec491ea6bd6631a65484fa24d2973 (patch)
tree5e55fa41d40bfe5bd6ab516610c0d835a31441a3 /filter
parentda5ac820d7200e70569f14a0468115ce4dc402f1 (diff)
coverity#735432 Logically dead code
Change-Id: I6bbbe539d28aefcad04ccae48f2518e78f15b240
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/svdfppt.cxx29
1 files changed, 0 insertions, 29 deletions
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index 089ae8ae8093..d92da70d14d0 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -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