summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-05-08 11:13:27 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-05-08 11:34:53 +0200
commitdbab26d1fdcc0891a0f3e098f10a5c98e328a48b (patch)
tree22a9212ddae8e7fd7b218164db6afd8271ca9fc6 /dbaccess
parentefdd215124df0ab98a33525ac01a9d8ff4a542d4 (diff)
dbaccess: handle StreamRelPath in ODBFilter::implImport()
Change-Id: I8a4d21f8bef272a6cdb5a72da274e65516c36617
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/filter/xml/xmlfilter.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx
index 4d2e8ccc60a5..60fd9f3eecd6 100644
--- a/dbaccess/source/filter/xml/xmlfilter.cxx
+++ b/dbaccess/source/filter/xml/xmlfilter.cxx
@@ -457,6 +457,10 @@ bool ODBFilter::implImport( const Sequence< PropertyValue >& rDescriptor )
try
{
xStorage.set(pMedium->GetStorage(false), UNO_QUERY_THROW);
+
+ OUString sStreamRelPath = aMediaDescriptor.getOrDefault("StreamRelPath", OUString());
+ if (!sStreamRelPath.isEmpty())
+ xStorage = xStorage->openStorageElement(sStreamRelPath, embed::ElementModes::READ);
}
catch (const Exception&)
{