summaryrefslogtreecommitdiff
path: root/automation/source/server/statemnt.cxx
diff options
context:
space:
mode:
authorMihaela Kedikova <misheto@openoffice.org>2010-04-30 10:22:04 +0200
committerMihaela Kedikova <misheto@openoffice.org>2010-04-30 10:22:04 +0200
commit771a23df1757f5aecbd2cb722e15691e9a6f28ff (patch)
tree4fe9cc7685b5c04ad43519cd19f3eb38eab2096c /automation/source/server/statemnt.cxx
parent39ca8c85709c3c329736d1a3d5309224e323eaf2 (diff)
gridcontrol_03: bug fixes
Diffstat (limited to 'automation/source/server/statemnt.cxx')
-rw-r--r--automation/source/server/statemnt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/automation/source/server/statemnt.cxx b/automation/source/server/statemnt.cxx
index 89be43de60ab..2d1cccd9fc51 100644
--- a/automation/source/server/statemnt.cxx
+++ b/automation/source/server/statemnt.cxx
@@ -6271,7 +6271,7 @@ protected:
::svt::table::RowPos nLastPos;
while ( ( nLastPos = pTC->GetCurrentRow( aPos ) ) != nNr1-1 && nStep > 0 )
{
- if ( nLastPos > nNr1-1 )
+ if ( nLastPos > nNr1-1 || nLastPos == ROW_INVALID )
aPos.Y() -= nStep;
else
aPos.Y() += nStep;