[Libreoffice-commits] .: svtools/source
Radek DoulÃk
rodo at kemper.freedesktop.org
Mon Jun 27 01:15:44 PDT 2011
svtools/source/contnr/svimpbox.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 0cfced00b9815ca48e7136904a163d85432560d4
Author: Luke Symes <allsymes at gmail.com>
Date: Sun Jun 26 22:13:01 2011 +1200
Fix ScrollToAbsPos to work when we have an empty list.
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index fd5a649..e0e9efc 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 )
More information about the Libreoffice-commits
mailing list