diff options
-rw-r--r-- | sd/source/ui/animations/CustomAnimationPane.cxx | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx index 2e6d511253ee..b58ca838b709 100644 --- a/sd/source/ui/animations/CustomAnimationPane.cxx +++ b/sd/source/ui/animations/CustomAnimationPane.cxx @@ -1815,14 +1815,14 @@ void CustomAnimationPane::onAdd() if (nEntryData) pDescriptor = *reinterpret_cast<CustomAnimationPresetPtr*>(nEntryData); - const double fDuration = pDescriptor->getDuration(); - mxCBXDuration->set_value(fDuration*100.0, FieldUnit::NONE); - bool bHasSpeed = pDescriptor->getDuration() > 0.001; - mxCBXDuration->set_sensitive( bHasSpeed ); - mxFTDuration->set_sensitive( bHasSpeed ); - if( pDescriptor ) { + const double fDuration = pDescriptor->getDuration(); + mxCBXDuration->set_value(fDuration*100.0, FieldUnit::NONE); + bool bHasSpeed = pDescriptor->getDuration() > 0.001; + mxCBXDuration->set_sensitive( bHasSpeed ); + mxFTDuration->set_sensitive( bHasSpeed ); + mxCustomAnimationList->unselect_all(); // gather shapes from the selection @@ -1851,6 +1851,14 @@ void CustomAnimationPane::onAdd() } } + PathKind ePathKind = getCreatePathKind(); + + if (ePathKind != PathKind::NONE) + { + createPath( ePathKind, aTargets, 0.0 ); + updateMotionPathTags(); + } + mrBase.GetDocShell()->SetModified(); updateControls(); |