diff options
author | Luke Symes <allsymes@gmail.com> | 2011-06-26 22:13:01 +1200 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2011-06-27 10:13:49 +0200 |
commit | 1dc2221b2639820a3949f37721243a18cfb74dd1 (patch) | |
tree | 3888cc2666fb91039b772df79594801a7474e4b1 /svtools | |
parent | 74ce447f370de298f88e0907c4283ee941c69505 (diff) |
Fix ScrollToAbsPos to work when we have an empty list.
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index fd5a649d833c..e0e9efca6f59 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -1014,6 +1014,8 @@ void SvImpLBox::MakeVisible( SvLBoxEntry* pEntry, sal_Bool bMoveToTop ) void SvImpLBox::ScrollToAbsPos( long nPos ) { + if( pView->GetVisibleCount() == 0 ) + return; long nLastEntryPos = pView->GetAbsPos( pView->Last() ); if( nPos < 0 ) |