equal
deleted
inserted
replaced
580 } |
580 } |
581 } |
581 } |
582 } |
582 } |
583 |
583 |
584 // check if we are close enough and calcualte with zoom factor. |
584 // check if we are close enough and calcualte with zoom factor. |
585 if (dist< (400/m_view->topView()->scalingFactor() * 100)) { |
585 if (result && dist< (400/m_view->topView()->scalingFactor() * 100)) { |
586 IntRect r = result->getRect(); |
586 IntRect r = result->getRect(); |
587 r.inflate(-2); |
587 r.inflate(-2); |
588 TPoint docPos(xInRect(r, pt.x()), yInRect(r, pt.y())); |
588 TPoint docPos(xInRect(r, pt.x()), yInRect(r, pt.y())); |
589 newPos = m_view->frameCoordsInViewCoords(docPos); |
589 newPos = m_view->frameCoordsInViewCoords(docPos); |
590 return result; |
590 return result; |