summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-01 09:49:49 +0100
committerAron Budea <aron.budea@collabora.com>2024-08-02 02:43:41 +0200
commit287609d593274d61c5b03d9a62625dd7238ef668 (patch)
treecdb3f4f8fc65bfa13249e3c421d1ef8f78059320
parent8b60b23ef2d85d7dbb951987023c7b20bf788e55 (diff)
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 <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx2
1 files changed, 1 insertions, 1 deletions
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 )