diff options
author | Lemures Lemniscati <lemures.lemniscati@gmail.com> | 2022-03-17 18:44:39 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2022-03-17 22:12:32 +0100 |
commit | fb48a6408a515057a03c485bf00df5c34706595b (patch) | |
tree | eff8bcfa4ed4bcda9df5ee7785f58421e138629f /vcl/source/gdi/pdfwriter_impl.cxx | |
parent | fab611b2310579962fe74b86e537f1812431f761 (diff) |
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 <caolanm@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl.cxx')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |