diff options
author | Vladimir Glazunov <vg@openoffice.org> | 2009-12-11 17:56:47 +0100 |
---|---|---|
committer | Vladimir Glazunov <vg@openoffice.org> | 2009-12-11 17:56:47 +0100 |
commit | 9d8e36f15c2ebade8f571944facf2b33a4ab82f9 (patch) | |
tree | f041671d1e681d8fd2540971ae46cf2cf7d5eb0f /sc | |
parent | ef3676ecc67e072318de2417dc9774664c5e457b (diff) | |
parent | e799c0f7ff29e81f19e26359d738c5c643452bc6 (diff) |
CWS-TOOLING: integrate CWS fwk129_DEV300
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlwrap.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index 98e8b2e1e83f..e5a9f4b251a8 100644 --- a/sc/source/filter/xml/xmlwrap.cxx +++ b/sc/source/filter/xml/xmlwrap.cxx @@ -737,12 +737,8 @@ sal_Bool ScXMLImportWrapper::ExportToComponent(uno::Reference<lang::XMultiServic { // old stream is still in this file's storage - open read-only - SfxMedium* pSrcMed = rDoc.GetDocumentShell()->GetMedium(); - String aSrcURL = pSrcMed->GetOrigURL(); - - // SfxMedium must not be read-only, or it will create a temp file in GetStorage - SfxMedium aTmpMedium( aSrcURL, STREAM_READWRITE, FALSE, NULL, NULL ); - uno::Reference<embed::XStorage> xTmpStorage = aTmpMedium.GetStorage(); + // #i106854# use the document's storage directly, without a temporary SfxMedium + uno::Reference<embed::XStorage> xTmpStorage = rDoc.GetDocumentShell()->GetStorage(); uno::Reference<io::XStream> xSrcStream; uno::Reference<io::XInputStream> xSrcInput; try |