summaryrefslogtreecommitdiff
path: root/sd/source/core
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-01-27 17:30:37 +0900
committerMichael Meeks <michael.meeks@novell.com>2011-01-28 12:04:28 +0000
commitd43823cf0585b1362f7c1fff5d424d8622c94639 (patch)
tree6876c60cb46a60bab1a6eff00fe5c29a32da9a11 /sd/source/core
parent99c5e41ad296e4bc8a9b2dc1e9932f1f9b2dfcb3 (diff)
narrowed a variable's scope
Diffstat (limited to 'sd/source/core')
-rw-r--r--sd/source/core/EffectMigration.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/core/EffectMigration.cxx b/sd/source/core/EffectMigration.cxx
index 2ae71a01522b..279e78926b2a 100644
--- a/sd/source/core/EffectMigration.cxx
+++ b/sd/source/core/EffectMigration.cxx
@@ -977,8 +977,6 @@ void EffectMigration::SetDimHide( SvxShape* pShape, sal_Bool bDimHide )
if( implIsInsideGroup( pObj ) )
return;
- Any aEmpty;
-
sd::MainSequencePtr pMainSequence = static_cast<SdPage*>(pObj->GetPage())->getMainSequence();
const Reference< XShape > xShape( pShape );
@@ -992,8 +990,10 @@ void EffectMigration::SetDimHide( SvxShape* pShape, sal_Bool bDimHide )
if( pEffect->getTargetShape() == xShape )
{
pEffect->setHasAfterEffect( bDimHide ? true : false );
- if( bDimHide )
+ if( bDimHide ) {
+ Any aEmpty;
pEffect->setDimColor( aEmpty );
+ }
pEffect->setAfterEffectOnNext( false );
bNeedRebuild = true;
}