summaryrefslogtreecommitdiff
path: root/svx/source/gallery2/codec.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/gallery2/codec.cxx')
-rw-r--r--svx/source/gallery2/codec.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/gallery2/codec.cxx b/svx/source/gallery2/codec.cxx
index 0149b4de5e97..773b769a2678 100644
--- a/svx/source/gallery2/codec.cxx
+++ b/svx/source/gallery2/codec.cxx
@@ -61,8 +61,7 @@ void GalleryCodec::Write( SvStream& rStmToWrite )
{
sal_uInt32 nPos, nCompSize;
- rStmToWrite.Seek( STREAM_SEEK_TO_END );
- const sal_uInt32 nSize = rStmToWrite.Tell();
+ const sal_uInt32 nSize = rStmToWrite.TellEnd();
rStmToWrite.Seek( 0 );
rStm.WriteChar( 'S' ).WriteChar( 'V' ).WriteChar( 'R' ).WriteChar( 'L' ).WriteChar( 'E' ).WriteChar( '2' );