sd/source/ui/animations/CustomAnimationPane.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 247f4aefb9879dd465e34a2072218a0f1748de53
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon May 9 10:11:22 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon May 9 12:36:33 2022 +0200

    Resolves: tdf#148985 crash on searching for non-existing prefix
    
    Change-Id: Ib89af12e75910adbd32abab5afceb9013dc51df2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134039
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx 
b/sd/source/ui/animations/CustomAnimationPane.cxx
index b3248aeaa15b..0910ba96efe4 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -2117,6 +2117,8 @@ IMPL_LINK_NOARG(CustomAnimationPane, SelectionHandler, 
Timer*, void)
     }
 
     int nSelected = mxLBAnimation->get_selected_index();
+    if (nSelected == -1)
+        return;
 
     // tdf#99137, the selected entry may also be a subcategory title, so not 
an effect
     // just skip it and move to the next one in this case

Reply via email to