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

New commits:
commit 48aaca5ba9c27a247ed502c3db827c6ac9f34df9
Author:     Lemures Lemniscati <[email protected]>
AuthorDate: Thu Mar 17 18:44:39 2022 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Mar 18 16:16:44 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
    (cherry picked from commit fb48a6408a515057a03c485bf00df5c34706595b)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131603
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx 
b/vcl/source/gdi/pdfwriter_impl.cxx
index 0a971622d5bc..e69accc8f6cb 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