sd/source/filter/eppt/epptso.cxx |   24 ++----------------------
 1 file changed, 2 insertions(+), 22 deletions(-)

New commits:
commit b3b78c6016cfbacf321721a4d4628507cd935b27
Author: Stephan Bergmann <[email protected]>
Date:   Fri Jul 1 13:50:08 2016 +0200

    clang-analyzer-deadcode.DeadStores
    
    ...after 19bacff27bd2201fb136963e11e865b8a31d849e "loplugin:singlevalfields 
in
    sd"
    
    Change-Id: Id0fb95abc3c4f2830abe833fe63f6ec26b9aa18f

diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx
index e534977..315a240 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 )
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to