crashtesting: cached deque::end invalidated

e.g. import of ooo101471-3.odf

Change-Id: Ie1d83077cf91f2291c74390c24b7f36808e32562
Reviewed-on: https://gerrit.libreoffice.org/59597
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2018-08-25 19:42:31 +01:00
parent a48b5c8e85
commit 7a115715c7

View file

@ -804,8 +804,7 @@ void ScXMLChangeTrackingImportHelper::CreateChangeTrack(ScDocument* pTempDoc)
pTrack->SetActionMax(pTrack->GetLast()->GetActionNumber());
aItr = aActions.begin();
aEndItr = aActions.end();
while (aItr != aEndItr)
while (aItr != aActions.end())
{
SetDependencies(aItr->get());
@ -816,8 +815,7 @@ void ScXMLChangeTrackingImportHelper::CreateChangeTrack(ScDocument* pTempDoc)
}
aItr = aActions.begin();
aEndItr = aActions.end();
while (aItr != aEndItr)
while (aItr != aActions.end())
{
OSL_ENSURE((*aItr)->nActionType == SC_CAT_CONTENT, "wrong action type");
SetNewCell(static_cast<ScMyContentAction*>(aItr->get()));