summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2000-10-19 16:04:20 +0000
committerMathias Bauer <mba@openoffice.org>2000-10-19 16:04:20 +0000
commite17cc7df9b2ca1b222c664b50fee715f8b4b966f (patch)
tree34b152a1133f6deebe49e2c243c15c1ee5e8d543 /sfx2
parentc6d5c57d1204a49588fa311a1373b5f44d0a3828 (diff)
#79652#: IsStorage must take Tempfile into account
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docfile.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 4fb4e39c8221..f827f79c5282 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docfile.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: mba $ $Date: 2000-10-19 12:53:30 $
+ * last change: $Author: mba $ $Date: 2000-10-19 17:04:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -907,7 +907,13 @@ sal_Bool SfxMedium::Commit()
//------------------------------------------------------------------
sal_Bool SfxMedium::IsStorage()
{
- return aStorage.Is() || SotStorage::IsStorageFile( GetInStream() );
+ if ( aStorage.Is() )
+ return sal_True;
+
+ if ( pImp->pTempFile )
+ return SotStorage::IsStorageFile( pImp->pTempFile->GetName() );
+ else
+ return SotStorage::IsStorageFile( GetInStream() );
}
//------------------------------------------------------------------