summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
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)