diff options
author | Lemures Lemniscati <lemures.lemniscati@gmail.com> | 2022-03-17 18:44:39 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-03-25 12:58:50 +0100 |
commit | 1ff3436c5c6eed74c32c2d4a3db4bd016f4a42d2 (patch) | |
tree | bb7103ae52cf4495007dca697be16e83f38487dd /vcl/source | |
parent | 46edb26ddfa6e37da9a3be16bf2f25cbe4aff417 (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
(cherry picked from commit fb48a6408a515057a03c485bf00df5c34706595b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131603
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-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 a3ad137230fd..eea47fc48fe3 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 { |