summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-01 13:50:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-01 13:50:08 +0200
commitb3b78c6016cfbacf321721a4d4628507cd935b27 (patch)
tree95ad87056a8d220aae3af01481c1e6b53c03b7e2 /sd
parent6fb44f527c8cf63f4487145298b00e65925ddede (diff)
clang-analyzer-deadcode.DeadStores
...after 19bacff27bd2201fb136963e11e865b8a31d849e "loplugin:singlevalfields in sd" Change-Id: Id0fb95abc3c4f2830abe833fe63f6ec26b9aa18f
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/epptso.cxx24
1 files changed, 2 insertions, 22 deletions
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx
index e5349777f06b..315a24016f89 100644
--- a/sd/source/filter/eppt/epptso.cxx
+++ b/sd/source/filter/eppt/epptso.cxx
@@ -3242,29 +3242,9 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a
.WriteUInt32( nOlePictureId );
nOlePictureId = 0;
}
- if ( bEffect )
+ if ( bEffect && !pClientData )
{
- if ( !pClientData )
- pClientData = new SvMemoryStream( 0x200, 0x200 );
-
- // check if it is sensible to replace the object effect with text effect,
- // because in Impress there is the possibility to use a compound effect,
- // e.g. the object effect is an AnimationEffect_FADE_FROM_LEFT and the
- // text effect is a AnimationEffect_FADE_FROM_TOP, in PowerPoint there
- // can be used only one effect
- if ( mnTextSize && ( eTe != css::presentation::AnimationEffect_NONE )
- && ( eAe != css::presentation::AnimationEffect_NONE )
- && ( eTe != eAe ) )
- {
- sal_uInt32 nFillStyleFlags, nLineStyleFlags;
- if ( aPropOpt.GetOpt( ESCHER_Prop_fNoFillHitTest, nFillStyleFlags )
- && aPropOpt.GetOpt( ESCHER_Prop_fNoLineDrawDash, nLineStyleFlags ) )
- {
- // there is no fillstyle and also no linestyle
- if ( ! ( ( nFillStyleFlags & 0x10 ) + ( nLineStyleFlags & 9 ) ) )
- eAe = eTe;
- }
- }
+ pClientData = new SvMemoryStream( 0x200, 0x200 );
}
if ( eCa != css::presentation::ClickAction_NONE )