summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2001-01-12 10:23:11 +0000
committerMartin Gallwey <mtg@openoffice.org>2001-01-12 10:23:11 +0000
commitab90a36d695174e5a4644f2538baa4cac687535d (patch)
tree92285af5275032312df0fcaac3d98415925a7178 /unotools
parent6229560ec58efea75cc322bdc4406d84e8ca32dd (diff)
#82700# getLength method should _not_ change the current position in the stream
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/streaming/streamhelper.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/unotools/source/streaming/streamhelper.cxx b/unotools/source/streaming/streamhelper.cxx
index ebbdd783ff21..1dae4e6c1660 100644
--- a/unotools/source/streaming/streamhelper.cxx
+++ b/unotools/source/streaming/streamhelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: streamhelper.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:03:55 $
+ * last change: $Author: mtg $ $Date: 2001-01-12 11:23:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -124,8 +124,7 @@ sal_Int64 SAL_CALL OInputStreamHelper::getLength( ) throw(::com::sun::star::io:
::osl::MutexGuard aGuard( m_aMutex );
SvLockBytesStat aStat;
m_xLockBytes->Stat( &aStat, SVSTATFLAG_DEFAULT );
- m_nActPos = aStat.nSize;
- return m_nActPos;
+ return aStat.nSize;
}
//------------------------------------------------------------------------------