diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-02-21 17:20:00 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-02-21 17:21:36 +0000 |
commit | 93363ff6ba8198e83417eb805b9342e8711b8c09 (patch) | |
tree | cad4405d53a8466e286277c62916df40001b4d8a /tools | |
parent | n#779642: Import vertical layout mode from VML elements. (diff) | |
download | core-93363ff6ba8198e83417eb805b9342e8711b8c09.tar.gz core-93363ff6ba8198e83417eb805b9342e8711b8c09.zip |
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; |