diff options
author | Zhe Wang <wangzcdl@apache.org> | 2012-06-25 05:04:59 +0000 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2013-04-07 23:37:42 +0200 |
commit | b86cf0421b432ebbf964960f0fcd2e6a5360f979 (patch) | |
tree | cccd1ad0409e8935fa48a27d0207350a17518b25 /sd | |
parent | 7ec7a9a68b4a9c5600840a34434fc800cda3d815 (diff) |
for #120049#(cherry picked from commit 9b4e6064f9598c834a9c36c39932f3e326419d44)
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/animations/CustomAnimationDialog.cxx | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx index 797cd6809ee2..14722bbe9299 100644 --- a/sd/source/ui/animations/CustomAnimationDialog.cxx +++ b/sd/source/ui/animations/CustomAnimationDialog.cxx @@ -2323,15 +2323,20 @@ void CustomAnimationTextAnimTabPage::update( STLPropertySet* pSet ) pSet->setPropertyValue( nHandleTextGroupingAuto, makeAny( fTextGroupingAuto ) ); } } + //bug 120049 + //[crash] Aoo crash when modify the "Random effects" animation effect's trigger condition to "Start effect on click of" . + //If this control is disabled, we should ignore its value + if (maCBXAnimateForm.IsEnabled()) + { + sal_Bool bAnimateForm = maCBXAnimateForm.IsChecked(); + sal_Bool bOldAnimateForm = !bAnimateForm; - sal_Bool bAnimateForm = maCBXAnimateForm.IsChecked(); - sal_Bool bOldAnimateForm = !bAnimateForm; - - if(mpSet->getPropertyState( nHandleAnimateForm ) != STLPropertyState_AMBIGUOUS) - mpSet->getPropertyValue( nHandleAnimateForm ) >>= bOldAnimateForm; + if(mpSet->getPropertyState( nHandleAnimateForm ) != STLPropertyState_AMBIGUOUS) + mpSet->getPropertyValue( nHandleAnimateForm ) >>= bOldAnimateForm; - if( bAnimateForm != bOldAnimateForm ) - pSet->setPropertyValue( nHandleAnimateForm, makeAny( bAnimateForm ) ); + if( bAnimateForm != bOldAnimateForm ) + pSet->setPropertyValue( nHandleAnimateForm, makeAny( bAnimateForm ) ); + } } void CustomAnimationTextAnimTabPage::updateControlStates() |