diff options
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgstrms.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx index fd9d1d1a513f..d4115e5e4724 100644 --- a/sot/source/sdstor/stgstrms.cxx +++ b/sot/source/sdstor/stgstrms.cxx @@ -352,10 +352,9 @@ void StgStrm::scanBuildPageChainCache(sal_Int32 *pOptionalCalcSize) m_aPagesCache.push_back(nBgn); nBgn = pFat->GetNextPage( nBgn ); - if( nUsedPageNumbers.find(nBgn) != nUsedPageNumbers.end() ) + //returned second is false if it already exists + if (!nUsedPageNumbers.insert(nBgn).second) bError = true; - else - nUsedPageNumbers.insert(nBgn); nOptSize += nPageSize; } |