summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/storagehelper.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2011-09-10 14:47:28 +0100
committerMichael Meeks <michael.meeks@novell.com>2011-09-11 09:27:05 +0200
commit0f690c3495fe66b22aa224ca229ca7b46941deac (patch)
treea7b3418677fd80aedf1b525396b3921015299eb1 /comphelper/source/misc/storagehelper.cxx
parent313b8b0db3b68b7938f5cd138c6a226d00a47b67 (diff)
Initial DocumentSettingsSerializer implementation
Diffstat (limited to 'comphelper/source/misc/storagehelper.cxx')
-rw-r--r--comphelper/source/misc/storagehelper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx
index 7e8bdec3a153..2684d94ea054 100644
--- a/comphelper/source/misc/storagehelper.cxx
+++ b/comphelper/source/misc/storagehelper.cxx
@@ -593,8 +593,9 @@ uno::Reference< io::XStream > OStorageHelper::GetStreamAtPath(
splitPath( aElems, rPath );
rtl::OUString aName( aElems.back() );
aElems.pop_back();
+ sal_uInt32 nStorageMode = nOpenMode & ~embed::ElementModes::TRUNCATE;
uno::Reference< embed::XStorage > xStorage(
- LookupStorageAtPath( xParentStorage, aElems, nOpenMode, rNastiness ),
+ LookupStorageAtPath( xParentStorage, aElems, nStorageMode, rNastiness ),
uno::UNO_QUERY_THROW );
return xStorage->openStreamElement( aName, nOpenMode );
}