[Libreoffice-commits] core.git: tools/source

Michael Meeks michael.meeks at suse.com
Thu Feb 21 09:22:27 PST 2013


 tools/source/memtools/multisel.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 93363ff6ba8198e83417eb805b9342e8711b8c09
Author: Michael Meeks <michael.meeks at suse.com>
Date:   Thu Feb 21 17:20:00 2013 +0000

    fix snafu that crept in with 5da5cd60acb7a18878300da7f4b0acb0dbad1888
    
    Change-Id: I391a415e0f4bf3813637191ef04c0b5f72a2c470

diff --git a/tools/source/memtools/multisel.cxx b/tools/source/memtools/multisel.cxx
index 429c608..b079e17 100644
--- a/tools/source/memtools/multisel.cxx
+++ b/tools/source/memtools/multisel.cxx
@@ -597,9 +597,8 @@ void MultiSelection::SetTotalRange( const Range& rTotRange )
 
     // re-calculate selection count
     nSelCount = 0;
-    for ( size_t i = 0, n = aSels.size(); i < n; ++ i ) {
-        nSelCount += pRange->Len();
-    }
+    for ( size_t i = 0, n = aSels.size(); i < n; ++ i )
+        nSelCount += aSels[i]->Len();
 
     bCurValid = sal_False;
     nCurIndex = 0;


More information about the Libreoffice-commits mailing list