1 diff -rup goodies/source/filter.vcl/eps.orig/eps.cxx goodies/source/filter.vcl/eps/eps.cxx
2 --- goodies/source/filter.vcl/eps.orig/eps.cxx 2007-11-26 12:08:53.000000000 +0100
3 +++ goodies/source/filter.vcl/eps/eps.cxx 2007-11-26 17:38:34.000000000 +0100
4 @@ -317,7 +317,11 @@ BOOL PSWriter::WritePS( const Graphic& r
5 // default values for the dialog options
8 +#ifdef UNX // don't compress by default on unix as ghostscript is unable to read LZW compressed eps
9 + mbCompression = FALSE;
13 mnTextMode = 0; // default0 : export glyph outlines
15 // try to get the dialog selection
16 @@ -335,12 +339,20 @@ BOOL PSWriter::WritePS( const Graphic& r
17 String aVersionStr( RTL_CONSTASCII_USTRINGPARAM( "Version" ) );
18 String aColorStr( RTL_CONSTASCII_USTRINGPARAM( "ColorFormat" ) );
19 String aComprStr( RTL_CONSTASCII_USTRINGPARAM( "CompressionMode" ) );
20 +#ifdef UNX // don't put binary tiff preview ahead of postscript code by default on unix as ghostscript is unable to read it
21 + mnPreview = pFilterConfigItem->ReadInt32( aPreviewStr, 0 );
23 mnPreview = pFilterConfigItem->ReadInt32( aPreviewStr, 1 );
25 mnLevel = pFilterConfigItem->ReadInt32( aVersionStr, 2 );
28 mbGrayScale = pFilterConfigItem->ReadInt32( aColorStr, 1 ) == 2;
29 - mbCompression = pFilterConfigItem->ReadInt32( aComprStr, 1 ) == 1;
30 +#ifdef UNX // don't compress by default on unix as ghostscript is unable to read LZW compressed eps
31 + mbCompression = pFilterConfigItem->ReadInt32( aComprStr, 0 ) != 0;
33 + mbCompression = pFilterConfigItem->ReadInt32( aComprStr, 1 ) == 1;
35 String sTextMode( RTL_CONSTASCII_USTRINGPARAM( "TextMode" ) );
36 mnTextMode = pFilterConfigItem->ReadInt32( sTextMode, 0 );