diff options
Diffstat (limited to 'svx/source/dialog/compressgraphicdialog.cxx')
-rw-r--r-- | svx/source/dialog/compressgraphicdialog.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svx/source/dialog/compressgraphicdialog.cxx b/svx/source/dialog/compressgraphicdialog.cxx index 3c68d0f1d5b1..8a39d7cf5635 100644 --- a/svx/source/dialog/compressgraphicdialog.cxx +++ b/svx/source/dialog/compressgraphicdialog.cxx @@ -191,8 +191,7 @@ void CompressGraphicsDialog::Update() SvMemoryStream aMemStream; aMemStream.SetVersion( SOFFICE_FILEFORMAT_CURRENT ); m_aGraphic.ExportNative(aMemStream); - aMemStream.Seek( STREAM_SEEK_TO_END ); - sal_Int32 aNativeSize = aMemStream.Tell(); + sal_Int32 aNativeSize = aMemStream.TellEnd(); OUString aNativeSizeString = SvxResId(STR_IMAGE_CAPACITY); aNativeSizeString = aNativeSizeString.replaceAll("$(CAPACITY)", OUString::number(aNativeSize / 1024)); @@ -353,8 +352,7 @@ IMPL_LINK_NOARG( CompressGraphicsDialog, CalculateClickHdl, weld::Button&, void SvMemoryStream aMemStream; aMemStream.SetVersion( SOFFICE_FILEFORMAT_CURRENT ); Compress( aMemStream ); - aMemStream.Seek( STREAM_SEEK_TO_END ); - aSize = aMemStream.Tell(); + aSize = aMemStream.TellEnd(); } if ( aSize > 0 ) |