diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-07 09:26:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-07 13:46:55 +0200 |
commit | 445ab2355333ddb46081baffb8b0e3bb14fe00b3 (patch) | |
tree | 7ccce8320f8877e2c662647cb0b71a225d42c6d4 /vcl/source/control | |
parent | a0865169ab62508a7b933ed4634defa57b25f7b7 (diff) |
combine PixelToLogic+LogicToPixel into LogicToLogic
avoiding some precision loss
Change-Id: I946f4f820321f76fb7634c722a28035600bac359
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154157
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/roadmap.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/roadmap.cxx b/vcl/source/control/roadmap.cxx index 882caa9c451d..a3d3251cea90 100644 --- a/vcl/source/control/roadmap.cxx +++ b/vcl/source/control/roadmap.cxx @@ -571,7 +571,7 @@ void ORoadmap::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& void ORoadmap::DrawHeadline(vcl::RenderContext& rRenderContext) { - Point aTextPos = PixelToLogic(LogicToPixel(Point(ROADMAP_INDENT_X, 8), MapMode(MapUnit::MapAppFont))); + Point aTextPos = OutputDevice::LogicToLogic(Point(ROADMAP_INDENT_X, 8), GetMapMode(), MapMode(MapUnit::MapAppFont)); Size aOutputSize(rRenderContext.GetOutputSize()); |