summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-17 09:26:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-20 09:50:44 +0200
commit9f0fdb491cb128d3a5afb9c1f5907dfc31f6b197 (patch)
tree9ecc6824a994962689eee751b7fa1f0d6b4c7c32 /sw/source/filter/ww8
parent7b355669c6ddeab2e6cec692d6afdff41c61d0fb (diff)
forcepoint#38 notify that obj in group was deleted
Change-Id: I4599a8e93eccb28c8a406418fd5c7c670b59c871 Reviewed-on: https://gerrit.libreoffice.org/53162 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/filter/ww8')
-rw-r--r--sw/source/filter/ww8/ww8graf.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx
index bf921f3c9c44..a57ccc46b3ac 100644
--- a/sw/source/filter/ww8/ww8graf.cxx
+++ b/sw/source/filter/ww8/ww8graf.cxx
@@ -2616,20 +2616,11 @@ SwFrameFormat* SwWW8ImplReader::Read_GrafLayer( long nGrafAnchorCp )
if (aData.size() != 1)
bReplaceable = false;
- SvxMSDffImportRec* pRecord = nullptr;
/*
Get the record for top level object, so we can get the word anchoring
and wrapping information for it.
*/
- for (auto const & it : aData)
- {
- if (it->pObj == pObject)
- {
- pRecord = it.get();
- break;
- }
- }
-
+ SvxMSDffImportRec* pRecord = aData.find(pObject);
OSL_ENSURE(pRecord, "how did that happen?");
if (!pRecord)
{