Kaydet (Commit) 683e0ee6 authored tarafından Julien Nabet's avatar Julien Nabet

tdf#99155: fix crash on clicking subcategory title in customanimations

Change-Id: I87b8664366c44d80a3ad1b4062ccb99bb1cdb8b9
Reviewed-on: https://gerrit.libreoffice.org/23955Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 79fc3337
......@@ -1749,6 +1749,10 @@ void CustomAnimationPane::animationChange()
if( maListSelection.size() == 1 )
{
CustomAnimationPresetPtr* pPreset = static_cast< CustomAnimationPresetPtr* >(mpLBAnimation->GetSelectEntryData());
// tdf#99137, the selected entry may also be a subcategory title, so not an effect
// just leave in this case
if (!pPreset)
return;
const double fDuration = (*pPreset)->getDuration();
CustomAnimationPresetPtr pDescriptor(*pPreset);
MainSequenceRebuildGuard aGuard( mpMainSequence );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment