vcl/source/gdi/pdfwriter_impl.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit fb48a6408a515057a03c485bf00df5c34706595b
Author:     Lemures Lemniscati <[email protected]>
AuthorDate: Thu Mar 17 18:44:39 2022 +0100
Commit:     Julien Nabet <[email protected]>
CommitDate: Thu Mar 17 22:12:32 2022 +0100

    tdf#148033: Loss of precision in /MediaBox (PDFWriterImpl::emitCatalog())
    
    License statement provided here:
    https://bugs.documentfoundation.org/show_bug.cgi?id=148033#c4
    
    Change-Id: I93333a17d4a6a266fc25a92abf50c22cb01a2b1d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131716
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx 
b/vcl/source/gdi/pdfwriter_impl.cxx
index fc15be2be7bb..1847eb7d7f78 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -4539,8 +4539,8 @@ bool PDFWriterImpl::emitCatalog()
     aLine.append( getResourceDictObj() );
     aLine.append( " 0 R\n" );
 
-    sal_Int32 nMediaBoxWidth = 0;
-    sal_Int32 nMediaBoxHeight = 0;
+    double nMediaBoxWidth = 0;
+    double nMediaBoxHeight = 0;
     sal_Int32 nUserUnit = 1;
     if( m_aPages.empty() ) // sanity check, this should not happen
     {

Reply via email to