| commit | bd42cd1a325cd53db9fca0865f851bcd6e09ccc6 | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Thu Mar 02 15:50:52 2023 +0000 |
| committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | Thu Mar 09 12:35:15 2023 +0000 |
| tree | 624462735c3823896ee592ce2924e3bd184aba68 | |
| parent | 73e307eb0c7811b84b6fb72f3241ea91a0b760ff [diff] |
tdf#153672 Use RelativeMapMode so text in gdis are scaled/offset correctly otherwise it overrides the outer GdiMetaFiles efforts to position the origin and the text is rendered off-canvas in this scenario Change-Id: If81692dce81fb6f00d5051228e1de13cdcae1770 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148102 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index 4563d30..f13b7c4 100644 --- a/drawinglayer/source/processor2d/vclprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx
@@ -389,7 +389,7 @@ void VclProcessor2D::RenderTextSimpleOrDecoratedPortionPrimitive2D( if (bChangeMapMode) { mpOutputDevice->Push(vcl::PushFlags::MAPMODE); mpOutputDevice->SetMapMode(aMapMode); mpOutputDevice->SetRelativeMapMode(aMapMode); } } else