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

New commits:
commit 502a45e112cdc5e296311ef8f3c220b706340e06
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon May 9 10:11:22 2022 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon May 9 19:14:35 2022 +0200

    Resolves: tdf#148985 crash on searching for non-existing prefix
    
    Change-Id: Ib89af12e75910adbd32abab5afceb9013dc51df2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134055
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx 
b/sd/source/ui/animations/CustomAnimationPane.cxx
index 5782005d0870..dc865670c397 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -2108,6 +2108,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