summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-02-26 15:16:55 +0000
committerMathias Bauer <mba@openoffice.org>2001-02-26 15:16:55 +0000
commitfea90b7526ff546ae6a5f36e367de3aad911dedd (patch)
tree568cf2ad23105675b0dace6f3201d70d5fee6a64 /sot
parentba4d8e35e58003161e375a04e9c598af870b239f (diff)
OLE storages contain only OLE storages, so copy only OLE storages!
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx
index a4611e61f4e0..f5b168f2237a 100644
--- a/sot/source/sdstor/stg.cxx
+++ b/sot/source/sdstor/stg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: stg.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: mba $ $Date: 2001-02-26 12:09:48 $
+ * last change: $Author: mba $ $Date: 2001-02-26 16:16:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -723,7 +723,7 @@ BOOL Storage::CopyTo( const String& rElem, BaseStorage* pDest, const String& rNe
{
// copy the entire storage
BaseStorage* p1 = OpenStorage( rElem, INTERNAL_MODE );
- BaseStorage* p2 = pDest->OpenStorage( rNew, STREAM_WRITE | STREAM_SHARE_DENYALL, pEntry->bDirect );
+ BaseStorage* p2 = pDest->OpenOLEStorage( rNew, STREAM_WRITE | STREAM_SHARE_DENYALL, pEntry->bDirect );
p2->SetClassId( p1->GetClassId() );
p1->CopyTo( p2 );
SetError( p1->GetError() );