diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-02-21 17:20:00 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-21 18:43:39 +0100 |
commit | a4f226088faa5b8d9a688a765af0bb832843068b (patch) | |
tree | b02346e1624552d68ca223b9e61cadbf58c59934 /tools | |
parent | 44bde255128378f34f6d5b63a66bbacb0575fa76 (diff) |
fix snafu that crept in with 5da5cd60acb7a18878300da7f4b0acb0dbad1888
Change-Id: I391a415e0f4bf3813637191ef04c0b5f72a2c470
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/memtools/multisel.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/source/memtools/multisel.cxx b/tools/source/memtools/multisel.cxx index 429c60800dfd..b079e1750f69 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; |