vcl/source/filter/wmf/emfwr.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit cf730cae337d06ac4efa72c9248b194d60d91c88
Author: Caolán McNamara <caol...@redhat.com>
Date:   Wed Jan 25 16:51:00 2017 +0000

    Resolves: tdf#94457 our EmfPlusSetPageTransform is malformed
    
    we write a single short, resulting in a record of 0x000C in length 
MS-EMFPLUS
    spec has EmfPlusSetPageTransform as 0x0010 in length because we're not 
writing
    the 4 byte PageScale value.
    
    the previous pageunit unit we are writing is of value 1, which is
    UnitTypeDisplay, the same spec says...
    
    "The unit of measure for page space coordinates, from the UnitType 
enumeration.
    This value SHOULD NOT be UnitTypeDisplay or UnitTypeWorld"
    
    and footnotes that with...
    
    "Windows never writes those values to the PageUnit field, but they are 
accepted
    with undefined results."
    
    Change-Id: Ic8b5ec463b59aab28ae9897947dfcdbd35b22048
    Reviewed-on: https://gerrit.libreoffice.org/33560
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Michael Stahl <mst...@redhat.com>

diff --git a/vcl/source/filter/wmf/emfwr.cxx b/vcl/source/filter/wmf/emfwr.cxx
index 5ac14fb..10f6a07 100644
--- a/vcl/source/filter/wmf/emfwr.cxx
+++ b/vcl/source/filter/wmf/emfwr.cxx
@@ -239,7 +239,6 @@ void EMFWriter::WriteEMFPlusHeader( const Size 
&rMtfSizePix, const Size &rMtfSiz
     ImplPlusRecord( EmfPlusRecordType::SetPixelOffsetMode, 0x0 );
     ImplPlusRecord( EmfPlusRecordType::SetAntiAliasMode, 0x09 );      // TODO: 
Check actual values for AntiAlias
     ImplPlusRecord( EmfPlusRecordType::SetCompositingQuality, 0x0100 ); // 
Default Quality
-    ImplPlusRecord( EmfPlusRecordType::SetPageTransform, 1 );
     ImplPlusRecord( EmfPlusRecordType::SetInterpolationMode, 0x00 );  // 
Default
     ImplPlusRecord( EmfPlusRecordType::GetDC, 0x00 );
     ImplEndCommentRecord();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to