sc/source/ui/view/hdrcont.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit 2269b418f7af598ff8194acb9929c8bd6c4baeb1 Author: Heiko Tietze <[email protected]> AuthorDate: Wed May 29 14:09:20 2024 +0200 Commit: Heiko Tietze <[email protected]> CommitDate: Fri May 31 08:17:18 2024 +0200 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 <[email protected]> Tested-by: Jenkins 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;
