summaryrefslogtreecommitdiff
path: root/tools/source/memtools/multisel.cxx
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2011-10-12 17:06:45 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2011-10-12 17:08:25 +0400
commitaaa6e59711d3ba9b143d3719c78a815d96c3b1df (patch)
treefe99a1e420b98630ac5aa44d41856fa350216f84 /tools/source/memtools/multisel.cxx
parentff9da5a017a56c06a644cf5da8d4a34f4b275df8 (diff)
treat "-" as entire range
Diffstat (limited to 'tools/source/memtools/multisel.cxx')
-rw-r--r--tools/source/memtools/multisel.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/source/memtools/multisel.cxx b/tools/source/memtools/multisel.cxx
index bf504e5d978d..1a21f0ac0aaa 100644
--- a/tools/source/memtools/multisel.cxx
+++ b/tools/source/memtools/multisel.cxx
@@ -1024,16 +1024,17 @@ bool StringRangeEnumerator::setRange( const rtl::OUString& i_rNewRange, bool i_b
aNumberBuf.append( *pInput++ );
if( aNumberBuf.getLength() )
{
- if( bSequence && aNumbers.empty() )
- aNumbers.push_back( mnMin );
-
sal_Int32 nNumber = aNumberBuf.makeStringAndClear().toInt32() + mnOffset;
aNumbers.push_back( nNumber );
bSequence = false;
}
if( *pInput == sal_Unicode('-') )
+ {
bSequence = true;
+ if( aNumbers.empty() )
+ aNumbers.push_back( mnMin );
+ }
else if( *pInput == sal_Unicode(',') || *pInput == sal_Unicode(';') )
{
if( bSequence && !aNumbers.empty() )