Index: main/sd/source/ui/animations/CustomAnimationDialog.cxx =================================================================== --- main/sd/source/ui/animations/CustomAnimationDialog.cxx (revision 1344577) +++ main/sd/source/ui/animations/CustomAnimationDialog.cxx (working copy) @@ -2387,15 +2387,20 @@ 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()