[Libreoffice-commits] core.git: sd/source

Srijan Bhatia (via logerrit) logerrit at kemper.freedesktop.org
Fri Jul 17 06:56:23 UTC 2020


 sd/source/ui/animations/CustomAnimationPane.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 4d78d8a0648bbbbacabb0a3e809f8788b37b1396
Author:     Srijan Bhatia <srijanbhatiasun at gmail.com>
AuthorDate: Wed Jul 1 17:24:03 2020 +0530
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Jul 17 08:55:39 2020 +0200

    tdf#126394 Allow changing animations for several objects at once
    
    Change-Id: Ia1adea3492f5b7b4e4d217a5fd338c69759259d0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97619
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 0b81244ff811..5e80435051bd 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -493,7 +493,7 @@ void CustomAnimationPane::updateControls()
 
     mxPBAddEffect->set_sensitive( maViewSelection.hasValue() );
     mxPBRemoveEffect->set_sensitive(nSelectionCount != 0);
-    bool bIsSelected = (nSelectionCount == 1);
+    bool bIsSelected = (nSelectionCount > 0);
 
     if(bIsSelected)
     {
@@ -2087,9 +2087,6 @@ IMPL_LINK_NOARG(CustomAnimationPane, AnimationSelectHdl, weld::TreeView&, void)
 
     mnLastSelectedAnimation = nSelected;
 
-    if( maListSelection.size() != 1 )
-        return;
-
     CustomAnimationPresetPtr* pPreset = reinterpret_cast<CustomAnimationPresetPtr*>(mxLBAnimation->get_id(nSelected).toInt64());
     PathKind ePathKind = getCreatePathKind();
 


More information about the Libreoffice-commits mailing list