summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-03-13 16:34:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-03-13 20:20:22 +0000
commit73858eed8e144c3cd9fcdae786e015ca325b9c11 (patch)
tree248c2c7f1ac6e207303617bf92615da255ac075e
parentee555c835aac8e21f0a08e7c9d513182728a4cfe (diff)
fix remainingSize for writable modified MemoryStream
Change-Id: If8abbca4701002b7c171c19fc6ec56d3211b0cb4 Reviewed-on: https://gerrit.libreoffice.org/35145 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-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 bd7f77bd8902..ef7091e98eba 100644
--- a/include/tools/stream.hxx
+++ b/include/tools/stream.hxx
@@ -650,7 +650,7 @@ public:
void ObjectOwnsMemory( bool bOwn ) { bOwnsData = bOwn; }
void SetResizeOffset( std::size_t nNewResize ) { nResize = nNewResize; }
- virtual sal_uInt64 remainingSize() override { return GetEndOfData() - Tell(); }
+ virtual sal_uInt64 remainingSize() override { FlushBuffer(true); return GetEndOfData() - Tell(); }
};
class TOOLS_DLLPUBLIC SvScriptStream: public SvStream