vcl/source/control/roadmap.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 06c552cf45a01bca6eff68033c59308c41dd79e8
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Jul 6 13:07:21 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Jul 6 22:03:59 2023 +0200

    use logical pixels in ORoadmap::DrawHeadline
    
    which is what DrawText wants
    
    Change-Id: I5dd98314f84f25f65e199444af87e4f34f7bfbce
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154145
    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 b45f219f62d0..882caa9c451d 100644
--- a/vcl/source/control/roadmap.cxx
+++ b/vcl/source/control/roadmap.cxx
@@ -571,9 +571,9 @@ void ORoadmap::Paint(vcl::RenderContext& rRenderContext, 
const tools::Rectangle&
 
 void ORoadmap::DrawHeadline(vcl::RenderContext& rRenderContext)
 {
-    Point aTextPos = LogicToPixel(Point(ROADMAP_INDENT_X, 8), 
MapMode(MapUnit::MapAppFont));
+    Point aTextPos = PixelToLogic(LogicToPixel(Point(ROADMAP_INDENT_X, 8), 
MapMode(MapUnit::MapAppFont)));
 
-    Size aOutputSize(GetOutputSizePixel());
+    Size aOutputSize(rRenderContext.GetOutputSize());
 
     // draw it
     rRenderContext.DrawText(tools::Rectangle(aTextPos, aOutputSize), GetText(),

Reply via email to