summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/etiff/etiff.cxx15
1 files changed, 4 insertions, 11 deletions
diff --git a/vcl/source/filter/etiff/etiff.cxx b/vcl/source/filter/etiff/etiff.cxx
index b34accab889b..2bfaea923c23 100644
--- a/vcl/source/filter/etiff/etiff.cxx
+++ b/vcl/source/filter/etiff/etiff.cxx
@@ -191,15 +191,8 @@ bool TIFFWriter::WriteTIFF( const Graphic& rGraphic, FilterConfigItem const * pF
if ( ImplWriteHeader( aAnimation.Count() > 0 ) )
{
- Size aDestMapSize( 300, 300 );
- const MapMode& aMapMode( aBmp.GetPrefMapMode() );
- if ( aMapMode.GetMapUnit() != MapUnit::MapPixel )
- {
- const Size aPrefSize( rGraphic.GetPrefSize() );
- aDestMapSize = OutputDevice::LogicToLogic(aPrefSize, aMapMode, MapMode(MapUnit::MapInch));
- }
- ImplWriteResolution( mnXResPos, aDestMapSize.Width() );
- ImplWriteResolution( mnYResPos, aDestMapSize.Height() );
+ ImplWriteResolution( mnXResPos, 96 );
+ ImplWriteResolution( mnYResPos, 96 );
if ( mnPalPos )
ImplWritePalette();
ImplWriteBody();
@@ -447,14 +440,14 @@ void TIFFWriter::ImplWriteBody()
}
-void TIFFWriter::ImplWriteResolution( sal_uInt64 nStreamPos, sal_uInt32 nResolutionUnit )
+void TIFFWriter::ImplWriteResolution( sal_uInt64 nStreamPos, sal_uInt32 nResolutionValue )
{
sal_uInt64 nCurrentPos = m_rOStm.Tell();
m_rOStm.Seek( nStreamPos + 8 );
m_rOStm.WriteUInt32( nCurrentPos - mnStreamOfs );
m_rOStm.Seek( nCurrentPos );
+ m_rOStm.WriteUInt32( nResolutionValue );
m_rOStm.WriteUInt32( 1 );
- m_rOStm.WriteUInt32( nResolutionUnit );
}