diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-09 13:51:10 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-09 14:01:18 +0200 |
commit | f9f3e97ca867db59f2fc2e4fdb5583ed49cab49c (patch) | |
tree | 19795a7c6339b999b19049249fa3ff5323570879 /chart2 | |
parent | 2bff291ac88ad71f258316a299771b2543f856e4 (diff) |
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
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartController_Window.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
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 ) ); |