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

New commits:
commit aaa6e59711d3ba9b143d3719c78a815d96c3b1df
Author: Ivan Timofeev <timofeev....@gmail.com>
Date:   Wed Oct 12 17:06:45 2011 +0400

    treat "-" as entire range

diff --git a/tools/source/memtools/multisel.cxx 
b/tools/source/memtools/multisel.cxx
index bf504e5..1a21f0a 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() )
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to