summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp/gridctrl.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2003-12-01 08:28:54 +0000
committerRüdiger Timm <rt@openoffice.org>2003-12-01 08:28:54 +0000
commit8f74b1bfbd22f5c1fc0048cf62a503e93ddadd69 (patch)
tree88d63b7f05a4c83b58e370850359f4eca19f9a99 /svx/source/fmcomp/gridctrl.cxx
parent2ef038ef12a0ba5ce041b49919f5a321d666e33a (diff)
INTEGRATION: CWS geordi2q10 (1.62.298); FILE MERGED
2003/11/28 09:38:07 rt 1.62.298.1: #111934#: join CWS dba01pp1
Diffstat (limited to 'svx/source/fmcomp/gridctrl.cxx')
-rw-r--r--svx/source/fmcomp/gridctrl.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index 20d82502a6..4fcda8492b 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: gridctrl.cxx,v $
*
- * $Revision: 1.62 $
+ * $Revision: 1.63 $
*
- * last change: $Author: vg $ $Date: 2003-05-19 12:50:44 $
+ * last change: $Author: rt $ $Date: 2003-12-01 09:28:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2417,11 +2417,14 @@ sal_Bool DbGridControl::SeekCursor(long nRow, sal_Bool bAbsolute)
m_nSeekPos = nRow;
else
{
- long nSteps = nRow - (m_pSeekCursor->getRow() - 1);// Tatsaechliche Position im Cursor
- bAbsolute = bAbsolute || (abs(nSteps) > 100); // Sprung zu gro ?
+
sal_Bool bSuccess=sal_False;
+ long nSteps = 0;
try
{
+ nSteps = nRow - (m_pSeekCursor->getRow() - 1);// Tatsaechliche Position im Cursor
+ bAbsolute = bAbsolute || (abs(nSteps) > 100); // Sprung zu gro ?
+
if (bAbsolute) // absolut positionierung
{
if ((bSuccess = m_pSeekCursor->absolute(nRow + 1)))