summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2011-10-06 19:07:43 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2011-10-06 19:07:43 +0400
commit3c7d3dba70e0d017b9ee3121fb4adc9fc6179300 (patch)
tree28685f35d48c2538ca84ab57c60db4d169a8c894 /tools
parent551a13f54e3e0f69d243b50db4f1b442ecce059a (diff)
fix doubling of range in StringRangeEnumerator
Diffstat (limited to 'tools')
-rw-r--r--tools/source/memtools/multisel.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/source/memtools/multisel.cxx b/tools/source/memtools/multisel.cxx
index 93792dcf6980..9984b3a3e190 100644
--- a/tools/source/memtools/multisel.cxx
+++ b/tools/source/memtools/multisel.cxx
@@ -955,7 +955,7 @@ bool StringRangeEnumerator::insertRange( sal_Int32 i_nFirst, sal_Int32 i_nLast,
else
bSuccess = false;
}
- if( i_nLast >= 0 )
+ else if( i_nLast >= 0 )
{
if( checkValue( i_nLast ) )
{
@@ -965,6 +965,8 @@ bool StringRangeEnumerator::insertRange( sal_Int32 i_nFirst, sal_Int32 i_nLast,
else
bSuccess = false;
}
+ else
+ bSuccess = false;
}
return bSuccess;
@@ -1006,6 +1008,7 @@ bool StringRangeEnumerator::setRange( const rtl::OUString& i_rNewRange, bool i_b
break;
}
nLastNumber = -1;
+ bSequence = false;
}
else
{