summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorSrijan Bhatia <srijanbhatiasun@gmail.com>2020-07-01 17:24:03 +0530
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-07-17 08:55:39 +0200
commit4d78d8a0648bbbbacabb0a3e809f8788b37b1396 (patch)
tree99e85ccd6c44ff37b4499dff8a499b0ca4e9ab51 /sd
parentae777762c15258be6598f8b8a056b2924e1fe756 (diff)
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@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx5
1 files changed, 1 insertions, 4 deletions
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();