summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-05-03 14:58:26 +0200
committerDavid Tardon <dtardon@redhat.com>2013-05-03 15:19:33 +0200
commit4f4f450eaf9dad85d28fcd58b01c0f51ff0bd5ef (patch)
tree4164da05045dddafae1d98260f13debb04471700 /xmloff
parente8ed29c952259a241564dfbf40e5b53d2c6e67e2 (diff)
fdo#60075 need to return context when available
Change-Id: I53a83a3f2234dc061c23344116b0e294594f1c90
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlmultiimagehelper.cxx4
1 files changed, 4 insertions, 0 deletions
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;
}