summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-04-11 20:00:14 +0200
committerMichael Stahl <mstahl@redhat.com>2014-04-11 23:08:11 +0200
commite98e738a82885b6e7fb643bf407e504fe095803e (patch)
tree88cd7e8feddf736a7672a2d73349f5df07e65d68 /forms
parente02a6cb2c3e2b23b203b422e4e0680877f232636 (diff)
replace some SvStream seeking with calls to remainingSize()
Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/ImageControl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/forms/source/component/ImageControl.cxx b/forms/source/component/ImageControl.cxx
index 26979a5a78a1..cfafdbb633ec 100644
--- a/forms/source/component/ImageControl.cxx
+++ b/forms/source/component/ImageControl.cxx
@@ -426,8 +426,7 @@ sal_Bool OImageControlModel::impl_updateStreamForURL_lck( const OUString& _rURL,
if ( !bSetNull )
{
// get the size of the stream
- pImageStream->Seek(STREAM_SEEK_TO_END);
- sal_Int32 nSize = (sal_Int32)pImageStream->Tell();
+ sal_uInt64 const nSize = pImageStream->remainingSize();
if (pImageStream->GetBufferSize() < 8192)
pImageStream->SetBufferSize(8192);
pImageStream->Seek(STREAM_SEEK_TO_BEGIN);