diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-07-13 19:13:08 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-07-13 18:16:22 +0200 |
commit | b5907f1d6e06bf6c28a06c87cfc4de7b7e96b454 (patch) | |
tree | a6bb3fafd2ba65e435d8a91bf71cb502785b8dde /svx/source/xoutdev/_xoutbmp.cxx | |
parent | 9eeffa4d2bd09e6f6f9ada7dd2fd10ed6ab8cde4 (diff) |
Simplify a bit
Change-Id: I7eaedfcd630a71ca2966d9622121c40aefae1e03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170427
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'svx/source/xoutdev/_xoutbmp.cxx')
-rw-r--r-- | svx/source/xoutdev/_xoutbmp.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/xoutdev/_xoutbmp.cxx b/svx/source/xoutdev/_xoutbmp.cxx index f722dc394530..f3923e378a1e 100644 --- a/svx/source/xoutdev/_xoutbmp.cxx +++ b/svx/source/xoutdev/_xoutbmp.cxx @@ -275,7 +275,6 @@ ErrCode XOutBitmap::WriteGraphic( const Graphic& rGraphic, OUString& rFileName, if( GRFILTER_FORMAT_NOTFOUND != nFilter ) { Graphic aGraphic; - OUString aExt = rFilter.GetExportFormatShortName( nFilter ).toAsciiLowerCase(); if (bAnimated) aGraphic = rGraphic; @@ -344,7 +343,7 @@ ErrCode XOutBitmap::WriteGraphic( const Graphic& rGraphic, OUString& rFileName, if (aGraphic.GetType() != GraphicType::NONE) { if( !(nFlags & XOutFlags::DontAddExtension) ) - aURL.setExtension( aExt ); + aURL.setExtension(rFilter.GetExportFormatShortName(nFilter).toAsciiLowerCase()); rFileName = aURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ); if (pMediaType) *pMediaType = rFilter.GetExportFormatMediaType(nFilter); |