From 2269b418f7af598ff8194acb9929c8bd6c4baeb1 Mon Sep 17 00:00:00 2001 From: Heiko Tietze Date: Wed, 29 May 2024 14:09:20 +0200 Subject: [PATCH] Resolves tdf#160324 - Larger hitarea for column header Finalizes patch I6d527d2b0d0de3b48f123b626ebf0b6ce60299a5 Change-Id: Iff5cd4f6252e42cf8fad0aa2f37f70db0b8a15ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168210 Reviewed-by: Heiko Tietze Tested-by: Jenkins --- sc/source/ui/view/hdrcont.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sc/source/ui/view/hdrcont.cxx b/sc/source/ui/view/hdrcont.cxx index bf97dbb01f95..ec64067f2507 100644 --- a/sc/source/ui/view/hdrcont.cxx +++ b/sc/source/ui/view/hdrcont.cxx @@ -628,9 +628,6 @@ void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const tools SCCOLROW ScHeaderControl::GetMousePos(const Point& rPos, bool& rBorder) const { - // #define nHitArea 5 - const int nHitArea( officecfg::Office::Common::Misc::ExperimentalMode::get() ? 5 : 2 ); - bool bFound = false; SCCOLROW nPos = GetPos(); SCCOLROW nHitNo = nPos; @@ -654,7 +651,7 @@ SCCOLROW ScHeaderControl::GetMousePos(const Point& rPos, bool& rBorder) const nScrPos += GetEntrySize( nEntryNo - 1 ) * nLayoutSign; //! GetHiddenCount() ?? nDif = nMousePos - nScrPos; - if (nDif >= -nHitArea && nDif <= +nHitArea) + if (nDif >= -5 && nDif <= 5) { bFound = true; nHitNo=nEntryNo-1;