summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-31 21:14:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-01 09:37:11 +0100
commit4fa6ed7b0902e08de006bcb7534ba49696affb9f (patch)
tree28cddef058460ce5a9b2be7049a51bb2e9ca916b /sd/source
parent4c11673e78813dedb2089dd7e1a76a12da26cc8b (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx5
1 files changed, 5 insertions, 0 deletions
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());