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

New commits:
commit c67abb385fbc1d601aee2fc693f440bbdfd26760
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Jan 31 21:14:02 2022 +0000
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Feb 7 17:05:29 2022 +0100

    tdf#145030 if all in effects list is unselected retain last marked obj
    
    in the slide selection
    
    Change-Id: Ibdd9c827fea3ef33f0ae385147b3fa633d5dff83
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129244
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129271
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx 
b/sd/source/ui/animations/CustomAnimationPane.cxx
index 496b7eedbb42..b952a72f69ab 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -2446,6 +2446,11 @@ void CustomAnimationPane::onSelect()
     if( maSelectionLock.isLocked() )
         return;
 
+    // tdf#145030 if nothing is selected in the effects list, leave the 
selection of
+    // objects in in the slide untouched
+    if (maListSelection.empty())
+        return;
+
     ScopeLockGuard aGuard( maSelectionLock );
     DrawViewShell* pViewShell = dynamic_cast< DrawViewShell* >(
         
FrameworkHelper::Instance(mrBase)->GetViewShell(FrameworkHelper::msCenterPaneURL).get());

Reply via email to