summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-31 20:40:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-01 11:14:04 +0100
commitb8b4dd7e909a46fe1777a64124d5fa0187a1ad70 (patch)
tree89a896fc5684d50491edfbce2852694c65c53042 /sd
parent7c8b41bc322720dc9434fbef1f10a6740913165e (diff)
tdf#147032 unselect anything set_cursor selected as its side-effect
Change-Id: I723bbd82fc01f644de3bfb2a80b4640cec0cfbca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129250 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index 3c67edc5c831..4f366979e20e 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -815,6 +815,8 @@ void CustomAnimationList::update()
} while (mxTreeView->iter_next(*xEntry));
}
+ // tdf#147032 unselect what previous set_cursor may have caused to get selected as a side-effect
+ mxTreeView->unselect_all();
for (const auto& rEntry : aNewSelection)
mxTreeView->select(*rEntry);