diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-01-19 08:38:58 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-01-19 08:38:58 +0100 |
commit | 16932cb2060d4f3965a8db131a6b6123c2b7760f (patch) | |
tree | 351d14d2ed8099302168fb82cc3eefa3330f30bb /automation | |
parent | f0d96ab85b324fc1ed3823a64e185b8ebe50c5c0 (diff) |
gridsort: TableControl API adjustments
Diffstat (limited to 'automation')
-rw-r--r-- | automation/source/server/statemnt.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/automation/source/server/statemnt.cxx b/automation/source/server/statemnt.cxx index 3e3b6db764df..f4ae483da633 100644 --- a/automation/source/server/statemnt.cxx +++ b/automation/source/server/statemnt.cxx @@ -6210,7 +6210,7 @@ protected: Point aPos( aSize.Width() / 2, aSize.Height() / 2 ); long nStep = aSize.Height() / 4; ::svt::table::RowPos nLastPos; - while ( ( nLastPos = pTC->getTableControlInterface().getRowAtPoint( aPos ) ) != nNr1-1 && nStep > 0 ) + while ( ( nLastPos = pTC->getTableControlInterface().hitTest( aPos ).nRow ) != nNr1-1 && nStep > 0 ) { if ( nLastPos > nNr1-1 || nLastPos == ROW_INVALID ) aPos.Y() -= nStep; @@ -6218,7 +6218,7 @@ protected: aPos.Y() += nStep; nStep /= 2; } - if ( pTC->getTableControlInterface().getRowAtPoint( aPos ) == nNr1-1 ) + if ( pTC->getTableControlInterface().hitTest( aPos ).nRow == nNr1-1 ) { MouseEvent aMEvnt(aPos,1,MOUSE_SIMPLECLICK|MOUSE_SELECT,MOUSE_LEFT,KEY_MOD1); pTC->getSelEngine()->SelMouseButtonDown( aMEvnt ); |