summaryrefslogtreecommitdiff
path: root/svtools/source/control/ruler.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2016-11-24 18:14:31 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-11-28 14:35:52 +0000
commit764358a43b83cdae9269af47070e3cb4739c96c0 (patch)
treee7825956a240a4d626eae1158f3d5a032c10e384 /svtools/source/control/ruler.cxx
parentb28b05053b1a6967b0cfa189da68e8d36a1ad443 (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>
Diffstat (limited to 'svtools/source/control/ruler.cxx')
-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)