summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgstrms.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/stgstrms.hxx')
-rw-r--r--sot/source/sdstor/stgstrms.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sot/source/sdstor/stgstrms.hxx b/sot/source/sdstor/stgstrms.hxx
index a1debe22dd32..32dd1bdafc72 100644
--- a/sot/source/sdstor/stgstrms.hxx
+++ b/sot/source/sdstor/stgstrms.hxx
@@ -82,7 +82,7 @@ public:
sal_Int32 GetSize() const { return nSize; }
sal_Int32 GetPage() const { return nPage; }
short GetPageSize() const { return nPageSize; }
- sal_Int32 GetPages() const;
+ sal_Int32 GetPages() const { return ( nSize + nPageSize - 1 ) / nPageSize;}
short GetOffset() const { return nOffset;}
void SetEntry( StgDirEntry& );
virtual bool SetSize( sal_Int32 );