diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2010-12-23 15:48:53 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2010-12-23 15:48:53 +0100 |
commit | dd42af8c16804d848b1358ea46811fae64088f9f (patch) | |
tree | ed004bfe5fff5a5243842bc999af0fe6cd693717 /automation/source | |
parent | 09cfbd6086296a987ded9275d9dad4b607c3e38c (diff) |
gridsort: re-factoring the column-resizing thingie, step 1
In the current implementation, this is rather complex, and hardly maintainable. Also, it all happens in
TableControl_Impl and TableDataWindow, while in the original design, the InputHandler was intended to care
for this kind of tasks (one class - one responsibility).
Diffstat (limited to 'automation/source')
-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 a288c3d4d3a7..353796a4c594 100644 --- a/automation/source/server/statemnt.cxx +++ b/automation/source/server/statemnt.cxx @@ -6207,7 +6207,7 @@ protected: Point aPos( aSize.Width() / 2, aSize.Height() / 2 ); long nStep = aSize.Height() / 4; ::svt::table::RowPos nLastPos; - while ( ( nLastPos = pTC->GetCurrentRow( aPos ) ) != nNr1-1 && nStep > 0 ) + while ( ( nLastPos = pTC->GetRowAtPoint( aPos ) ) != nNr1-1 && nStep > 0 ) { if ( nLastPos > nNr1-1 || nLastPos == ROW_INVALID ) aPos.Y() -= nStep; @@ -6215,7 +6215,7 @@ protected: aPos.Y() += nStep; nStep /= 2; } - if ( pTC->GetCurrentRow( aPos ) == nNr1-1 ) + if ( pTC->GetRowAtPoint( aPos ) == nNr1-1 ) { MouseEvent aMEvnt(aPos,1,MOUSE_SIMPLECLICK|MOUSE_SELECT,MOUSE_LEFT,KEY_MOD1); pTC->getSelEngine()->SelMouseButtonDown( aMEvnt ); |