summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2016-11-24 18:14:31 +0300
committerAndras Timar <andras.timar@collabora.com>2017-02-17 21:34:56 +0100
commitd240fa8cab17e2aecfed9340de431eb5a9408cef (patch)
treeeced1e6550b61a7a182493716aec7dee43ab7b83 /svtools
parentee9164755ba3b661cb74741eea6b03d71d06cea6 (diff)
tdf#104215: Remove the out-of-borders ruler check
It is not called for out-of-borders points anyway, unless there is a table border on page border, in which case the cursor shows that dragging should be possible. Change-Id: If5cecbcd0799c74012c525588c0d2fce5d79ffd6 Reviewed-on: https://gerrit.libreoffice.org/31309 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 764358a43b83cdae9269af47070e3cb4739c96c0)
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ruler.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 22b752d6f709..25fa30af1422 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -1515,7 +1515,6 @@ bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
// test if outside
nX -= mnVirOff;
- long nXTemp = nX;
if ( (nX < mpData->nRulVirOff - nXExtraOff) ||
(nX > mpData->nRulVirOff + mpData->nRulWidth + nXExtraOff) ||
(nY < 0) ||
@@ -1615,14 +1614,6 @@ bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
}
}
- // everything left and right is outside and don't take this into account
- if ( (nXTemp < mpData->nRulVirOff) || (nXTemp > mpData->nRulVirOff+mpData->nRulWidth) )
- {
- pHitTest->nPos = 0;
- pHitTest->eType = RulerType::Outside;
- return false;
- }
-
// test the borders
int nBorderTolerance = 1;
if(pHitTest->bExpandTest)