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 <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
diff --git a/sc/source/ui/view/hdrcont.cxx b/sc/source/ui/view/hdrcont.cxx
index bf97dbb..ec64067 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;