vcl/source/control/roadmap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 445ab2355333ddb46081baffb8b0e3bb14fe00b3 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Jul 7 09:26:47 2023 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Jul 7 13:46:55 2023 +0200 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.gran...@collabora.co.uk> 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());