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

New commits:
commit 32d13514951be9be9b18448b88404465448ba02b
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Thu Aug 1 09:49:49 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Aug 2 20:40:00 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>
    (cherry picked from commit de15d0a566ce72f2d508ceb7b3fbf60d2aa31329)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171358
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx 
b/vcl/source/gdi/pdfwriter_impl.cxx
index 9d88863ecf45..70058f24e426 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -9818,7 +9818,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