diff options
author | Eike Rathke <er@openoffice.org> | 2001-05-08 15:31:41 +0000 |
---|---|---|
committer | Eike Rathke <er@openoffice.org> | 2001-05-08 15:31:41 +0000 |
commit | 74c76e3a3417980cfa5f87ad48145375a9d6c6bf (patch) | |
tree | 48fb939cef8780cd8ff82825b7e37688e6c5a4ec /sc/source/filter/html/htmlexp2.cxx | |
parent | 296ca8ef60f6a7a9dce56b795503157bbe39ec88 (diff) |
WriteGraphic: use native if possible
Diffstat (limited to 'sc/source/filter/html/htmlexp2.cxx')
-rw-r--r-- | sc/source/filter/html/htmlexp2.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/filter/html/htmlexp2.cxx b/sc/source/filter/html/htmlexp2.cxx index 3b75e54514a5..2324ae16bd63 100644 --- a/sc/source/filter/html/htmlexp2.cxx +++ b/sc/source/filter/html/htmlexp2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: htmlexp2.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:45:12 $ + * last change: $Author: er $ $Date: 2001-05-08 16:31:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -252,7 +252,9 @@ void ScHTMLExport::WriteImage( String& rLinkName, const Graphic& rGrf, { // Grafik als (JPG-)File speichern String aGrfNm( aStreamPath ); - USHORT nErr = XOutBitmap::WriteGraphic( rGrf, aGrfNm, _STRINGCONST( "JPG" ), nXOutFlags ); + nXOutFlags |= XOUTBMP_USE_NATIVE_IF_POSSIBLE; + USHORT nErr = XOutBitmap::WriteGraphic( rGrf, aGrfNm, + _STRINGCONST( "JPG" ), nXOutFlags ); if( !nErr ) // sonst fehlerhaft, da ist nichts auszugeben { rLinkName = URIHelper::SmartRelToAbs( aGrfNm ); |