From f9f3e97ca867db59f2fc2e4fdb5583ed49cab49c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 9 Sep 2015 13:51:10 +0200 Subject: SdrObjEditView::IsTextEditHit effectively ignores its nTol argument ...ever since nTol=0; // Joe am 6.3.1997: Keine Hittoleranz mehr hier had been added into it sometime prior to fd069bee7e57ad529c3c0974559fd2d84ec3151a "initial import." So lets assume Joe meant that as a permanent fix rather than a temporal hack (which would have survived for longer than 18 years anyway). Change-Id: Ib30ac8d578f70c861d4c0f5f71bf4c13e9281db8 --- chart2/source/controller/main/ChartController_Window.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'chart2') diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx index 9c1c7c4c1358..dd6ccaf4ed61 100644 --- a/chart2/source/controller/main/ChartController_Window.cxx +++ b/chart2/source/controller/main/ChartController_Window.cxx @@ -215,8 +215,6 @@ OUString lcl_getFormatCommandForObjectCID( const OUString& rCID ) } // anonymous namespace -const short HITPIX=2; //hit-tolerance in pixel - // awt::XWindow void SAL_CALL ChartController::setPosSize( sal_Int32 X, @@ -581,7 +579,7 @@ void ChartController::execute_MouseButtonDown( const MouseEvent& rMEvt ) if( pDrawViewWrapper->IsTextEdit() ) { SdrViewEvent aVEvt; - if ( pDrawViewWrapper->IsTextEditHit( aMPos, HITPIX ) || + if ( pDrawViewWrapper->IsTextEditHit( aMPos ) || // #i12587# support for shapes in chart ( rMEvt.IsRight() && pDrawViewWrapper->PickAnything( rMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt ) == SDRHIT_MARKEDOBJECT ) ) { @@ -1836,7 +1834,7 @@ void ChartController::impl_SetMousePointer( const MouseEvent & rEvent ) if ( m_pDrawViewWrapper->IsTextEdit() ) { - if( m_pDrawViewWrapper->IsTextEditHit( aMousePos, HITPIX) ) + if( m_pDrawViewWrapper->IsTextEditHit( aMousePos ) ) { m_pChartWindow->SetPointer( m_pDrawViewWrapper->GetPreferredPointer( aMousePos, m_pChartWindow, nModifier, bLeftDown ) ); -- cgit