diff options
author | Noel Grandin <noel@peralex.com> | 2012-07-27 19:57:22 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-27 20:08:45 +0200 |
commit | 3ae618f9e4c34d5f6f10d953e3fb074018001748 (patch) | |
tree | ff2fb6a6799ff98295c6939c4bf1c8980754e093 /sw | |
parent | 7a1fe4a086ba617a43012c6fabf7727a1eb49b43 (diff) |
convert SvxMSDffShapeInfos to sorted_vector
... with some fixes from the committer.
Change-Id: I9408d8b7c80aff1d1fdb23b852b79bfee7dc4c95
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 292b4fbec5c6..1512cc0108f4 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -594,10 +594,10 @@ SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt, SvxMSDffShapeInfo aTmpRec( 0, pImpRec->nShapeId ); aTmpRec.bSortByShapeId = sal_True; - sal_uInt16 nFound; - if( GetShapeInfos()->Seek_Entry( &aTmpRec, &nFound ) ) + SvxMSDffShapeInfos::const_iterator it = GetShapeInfos()->find( &aTmpRec ); + if( it != GetShapeInfos()->end() ) { - SvxMSDffShapeInfo& rInfo = *GetShapeInfos()->GetObject(nFound); + SvxMSDffShapeInfo& rInfo = **it; pImpRec->bReplaceByFly = rInfo.bReplaceByFly; pImpRec->bLastBoxInChain = rInfo.bLastBoxInChain; } |