diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/memtools/multisel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/memtools/multisel.cxx b/tools/source/memtools/multisel.cxx index 1928a6913e5a..b63cabd01cdb 100644 --- a/tools/source/memtools/multisel.cxx +++ b/tools/source/memtools/multisel.cxx @@ -238,7 +238,7 @@ void MultiSelection::Select( const Range& rIndexRange, bool bSelect ) DBG_ASSERT(aTotRange.IsInside(nTmpMin), "selected index out of range" ); // replace whole selection? - if( nTmpMin <= nCurMin && nTmpMax >= nCurMax ) + if( aSels.empty() || (nTmpMin <= nCurMin && nTmpMax >= nCurMax ) ) { ImplClear(); if ( bSelect ) |