diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-10-24 14:30:29 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-10-24 14:30:29 +0000 |
commit | 1d8ad60f21e6cbd77ebebe552bd6aff9eaa90f11 (patch) | |
tree | 40887a749542e7ed49ada972e33059bd091a0008 /sw/source/ui/dbui/mailmergehelper.cxx | |
parent | e9938f166ea00b2dd7768afbd80fe32e11d448a4 (diff) |
INTEGRATION: CWS os57 (1.5.28); FILE MERGED
2005/10/06 06:29:04 os 1.5.28.3: RESYNC: (1.6-1.7); FILE MERGED
2005/09/13 12:55:51 os 1.5.28.2: RESYNC: (1.5-1.6); FILE MERGED
2005/05/02 13:32:52 os 1.5.28.1: #i45421# select added address block
Diffstat (limited to 'sw/source/ui/dbui/mailmergehelper.cxx')
-rw-r--r-- | sw/source/ui/dbui/mailmergehelper.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/ui/dbui/mailmergehelper.cxx b/sw/source/ui/dbui/mailmergehelper.cxx index bda328b39576..5a3ffd4ff74d 100644 --- a/sw/source/ui/dbui/mailmergehelper.cxx +++ b/sw/source/ui/dbui/mailmergehelper.cxx @@ -4,9 +4,9 @@ * * $RCSfile: mailmergehelper.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: hr $ $Date: 2005-09-23 11:48:23 $ + * last change: $Author: hr $ $Date: 2005-10-24 15:30:29 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -342,6 +342,11 @@ void SwAddressPreview::SelectAddress(sal_uInt16 nSelect) { DBG_ASSERT(pImpl->nSelectedAddress < pImpl->aAdresses.size(), "selection invalid") pImpl->nSelectedAddress = nSelect; + // now make it visible.. + sal_uInt16 nSelectRow = nSelect / pImpl->nColumns; + sal_uInt16 nStartRow = (sal_uInt16)aVScrollBar.GetThumbPos(); + if( (nSelectRow < nStartRow) || (nSelectRow >= (nStartRow + pImpl->nRows) )) + aVScrollBar.SetThumbPos( nSelectRow ); } /*-- 25.06.2004 11:00:40--------------------------------------------------- |