diff options
author | David Tardon <dtardon@redhat.com> | 2013-03-26 06:32:52 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-03-26 06:32:57 +0100 |
commit | 459729627600fb057265479261ade74a55cd48d5 (patch) | |
tree | ef4a2604e2ad2b974223ccb131bdf7a5b751737f /filter | |
parent | WaE: unused variable 'nPages' (diff) | |
download | core-459729627600fb057265479261ade74a55cd48d5.tar.gz core-459729627600fb057265479261ade74a55cd48d5.zip |
WaE: unused variable 'aResult'
Change-Id: Ibd50c0a7af300a2d60919e24fe09e6f1c74c0851
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphic/GraphicExportFilter.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/filter/source/graphic/GraphicExportFilter.cxx b/filter/source/graphic/GraphicExportFilter.cxx index 46a5b7f43ef3..43c65e71d004 100644 --- a/filter/source/graphic/GraphicExportFilter.cxx +++ b/filter/source/graphic/GraphicExportFilter.cxx @@ -126,13 +126,18 @@ sal_Bool SAL_CALL GraphicExportFilter::filter( const Sequence<PropertyValue>& rD SvMemoryStream aMemStream; const GraphicConversionParameters aParameters(aTargetSizePixel, true, true); - sal_uInt16 aResult = rFilter.ExportGraphic( aGraphic.GetBitmapEx(aParameters), String(), aMemStream, nFilterFormat, &aFilterData ); + const sal_uInt16 nResult = rFilter.ExportGraphic( aGraphic.GetBitmapEx(aParameters), String(), aMemStream, nFilterFormat, &aFilterData ); - SvOutputStream aOutputStream( mxOutputStream ); - aMemStream.Seek(0); - aOutputStream << aMemStream; + if ( nResult == GRFILTER_OK ) + { + SvOutputStream aOutputStream( mxOutputStream ); + aMemStream.Seek(0); + aOutputStream << aMemStream; + + return true; + } - return true; + return false; } void SAL_CALL GraphicExportFilter::cancel( ) throw (RuntimeException) |