summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/docfile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/docfile.cxx')
-rw-r--r--sfx2/source/doc/docfile.cxx17
1 files changed, 4 insertions, 13 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 77b97503fe31..c71e83330924 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docfile.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: mba $ $Date: 2000-10-12 16:34:13 $
+ * last change: $Author: mba $ $Date: 2000-10-16 14:11:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -857,19 +857,10 @@ sal_Bool SfxMedium::Commit()
}
//------------------------------------------------------------------
-#if SUPD<608
-sal_Bool SfxMedium::IsStorage() const
+sal_Bool SfxMedium::IsStorage()
{
-/*
- if( !aStorage.Is() && !pInStream )
- {
- (const_cast< SfxMedium* > (this))->GetStorage();
- (const_cast< SfxMedium* > (this))->ResetError();
- }
-*/
- return aStorage.Is();
+ return aStorage.Is() || SotStorage::IsStorageFile( GetInStream() );
}
-#endif
//------------------------------------------------------------------
Link SfxMedium::GetDataAvailableLink() const