[Libreoffice-commits] .: svtools/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Tue Feb 8 01:08:02 PST 2011


 svtools/source/control/ctrlbox.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 25fce4988d40042bdb2d754888dec36a3858ee1c
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Tue Feb 8 10:05:57 2011 +0100

    Fixed crasher introduced by commit #196197b2

diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 37bb9d0..2282e91 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -618,7 +618,7 @@ USHORT LineListBox::GetEntryPos( long nLine1, long nLine2,
                                 long nDistance, USHORT nStyle ) const
 {
     for ( size_t i = 0, n = pLineList->size(); i < n; ++i ) {
-        ImpLineListData* pData = (*pLineList)[ n ];
+        ImpLineListData* pData = (*pLineList)[ i ];
         if ( pData )
         {
             if (  (pData->nLine1    == nLine1)


More information about the Libreoffice-commits mailing list