diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-03-02 15:50:52 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-03-12 18:14:47 +0100 |
commit | 95cc60a1bcc87fc972ccc49adff9d76d481967f8 (patch) | |
tree | 9586da794acd5b9284170dd50d1c789537cbb8f6 /drawinglayer | |
parent | eefbfd252261419662638a29aff67370052fc0e9 (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>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/vclprocessor2d.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index 4563d30c518f..f13b7c4aadb2 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 |