From 4f4f450eaf9dad85d28fcd58b01c0f51ff0bd5ef Mon Sep 17 00:00:00 2001 From: David Tardon Date: Fri, 3 May 2013 14:58:26 +0200 Subject: fdo#60075 need to return context when available Change-Id: I53a83a3f2234dc061c23344116b0e294594f1c90 --- xmloff/source/core/xmlmultiimagehelper.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmloff') diff --git a/xmloff/source/core/xmlmultiimagehelper.cxx b/xmloff/source/core/xmlmultiimagehelper.cxx index e33c4438ee1e..3d2dc778ce74 100644 --- a/xmloff/source/core/xmlmultiimagehelper.cxx +++ b/xmloff/source/core/xmlmultiimagehelper.cxx @@ -129,6 +129,10 @@ const SvXMLImportContext* multiImageImportHelper::solveMultipleImages() removeGraphicFromImportContext(**maImplContextVector[a]); } } + else if (maImplContextVector.size() == 1) + { + pContext = *maImplContextVector.front(); + } return pContext; } -- cgit