summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-08-16 18:31:07 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-08-16 20:49:19 +0200
commite97997f1e56731b97d469f775994ef3d05f17d35 (patch)
treef6fcba98f516bc7f980072e53e1eea34f9422138 /include
parentd4a8fa7db0ed4faae00408fbda2352379774cfc0 (diff)
SvMemoryStream.remainingSize ret. size to end of data not buffer
SvMemoryStream remainingSize returned the size from current position to internal buffer size instead to end of data. This was not consistent with what remainingSize description says on SvStream (and other SvStream implementations work) and what the user expects. Change-Id: I7ff391754a386c5f067a4bd4eed2ee7f2d7fd77e
Diffstat (limited to 'include')
-rw-r--r--include/tools/stream.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx
index 181a9ce0982a..920b1bf856b8 100644
--- a/include/tools/stream.hxx
+++ b/include/tools/stream.hxx
@@ -736,7 +736,7 @@ public:
bool IsObjectMemoryOwner() { return bOwnsData; }
void SetResizeOffset( sal_Size nNewResize ) { nResize = nNewResize; }
sal_Size GetResizeOffset() const { return nResize; }
- virtual sal_uInt64 remainingSize() SAL_OVERRIDE { return GetBufSize() - Tell(); }
+ virtual sal_uInt64 remainingSize() SAL_OVERRIDE { return GetEndOfData() - Tell(); }
};
class TOOLS_DLLPUBLIC SvScriptStream: public SvStream