| commit | ba42b8b95b2166f9bd578cd90c54e9826a755a6e | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Thu Mar 02 15:50:52 2023 +0000 |
| committer | Caolán McNamara <caolanm@redhat.com> | Thu Mar 02 20:01:44 2023 +0000 |
| tree | 7e3d7cadd41c96fb0b5bf3b1d2880b2d5023b1b0 | |
| parent | caa1d1ccf39ff8a60b7d89dd53afbf73d3cafeca [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/+/148136 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.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