vcl/source/gdi/pdfwriter_impl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 287609d593274d61c5b03d9a62625dd7238ef668
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Thu Aug 1 09:49:49 2024 +0100
Commit:     Aron Budea <aron.bu...@collabora.com>
CommitDate: Fri Aug 2 02:43:41 2024 +0200

    m_aPixelSize should be in pixels, but GetPrefSize depends on GetPrefMapMode
    
    i.e later we do:
    
    Size aSize = PixelToLogic(rEmit.m_aPixelSize, 
MapMode(m_aMapMode.GetMapUnit()));
    
    and PrefSize is in PrefMapMode units.
    
    Change-Id: I387316804496fc0a05c3370f370f5f562c288d77
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171251
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx 
b/vcl/source/gdi/pdfwriter_impl.cxx
index 073b755543d1..69a454ff6a65 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -9750,7 +9750,7 @@ void PDFWriterImpl::createEmbeddedFile(const Graphic& 
rGraphic, ReferenceXObject
     }
 
     rEmit.m_nFormObject = createObject();
-    rEmit.m_aPixelSize = rGraphic.GetPrefSize();
+    rEmit.m_aPixelSize = rGraphic.GetSizePixel();
 }
 
 void PDFWriterImpl::drawJPGBitmap( SvStream& rDCTData, bool bIsTrueColor, 
const Size& rSizePixel, const tools::Rectangle& rTargetArea, const AlphaMask& 
rAlphaMask, const Graphic& rGraphic )

Reply via email to