From 4586a09c8b12e5a185f022b059f2b9b1ba79d5bb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 8 Dec 2021 15:48:40 +0000 Subject: Related: tdf#144410 excessive "resize" triggered MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit so changing cursor pos becomes hit or miss in the dropdown arrow shown case Change-Id: I6e08a022041667fe8368b2cb09289a598957eb87 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126551 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sc/source/ui/cctrl/checklistmenu.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index 7a959023d3e0..e1c68406b8db 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -144,6 +144,8 @@ void ScCheckListMenuControl::addSeparator() IMPL_LINK(ScCheckListMenuControl, TreeSizeAllocHdl, const Size&, rSize, void) { + if (maAllocatedSize == rSize) + return; maAllocatedSize = rSize; SetDropdownPos(); if (!mnAsyncSetDropdownPosId && Application::GetToolkitName().startsWith("gtk")) -- cgit