From 4c11673e78813dedb2089dd7e1a76a12da26cc8b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 31 Jan 2022 20:40:52 +0000 Subject: tdf#147032 unselect anything set_cursor selected as its side-effect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I723bbd82fc01f644de3bfb2a80b4640cec0cfbca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129243 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sd/source/ui/animations/CustomAnimationList.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx index 65d71f661e89..2ae97e5cc5dc 100644 --- a/sd/source/ui/animations/CustomAnimationList.cxx +++ b/sd/source/ui/animations/CustomAnimationList.cxx @@ -814,6 +814,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); -- cgit