summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgdir.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx
index dedb7cd3f690..fc110ad35b0b 100644
--- a/sot/source/sdstor/stgdir.cxx
+++ b/sot/source/sdstor/stgdir.cxx
@@ -970,7 +970,7 @@ void* StgDirStrm::GetEntry( sal_Int32 n, bool bDirty )
return NULL;
n *= STGENTRY_SIZE;
- if( n < 0 && n >= nSize )
+ if( n >= nSize )
return NULL;
return GetPtr( n, true, bDirty );
}