summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-07-06 13:07:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-07-06 22:03:59 +0200
commit06c552cf45a01bca6eff68033c59308c41dd79e8 (patch)
tree05c051fb2b5759fce2aa6db024ca36953cb94a8c /vcl/source/control
parentfaadaa111d0c4025af5cffb8c8dbd084040f7217 (diff)
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.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/roadmap.cxx4
1 files changed, 2 insertions, 2 deletions
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(),