From b9cc944daeede51acd322b1cea47d6f44b20968a Mon Sep 17 00:00:00 2001 From: Heiko Tietze Date: Mon, 15 Sep 2025 14:19:46 +0200 Subject: [PATCH] Resolves tdf#167971 - Dialcontrol with clean background For some reason the DrawEllipsis() command paints rather a rounded rectangle than a circle; DrawPie() wiorks much better Change-Id: I60a2f9df30d47479a2367c0d0fbbd895859190c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190968 Tested-by: Jenkins Reviewed-by: Heiko Tietze --- svx/source/dialog/dialcontrol.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx index b55535575f10..d8dd5a08a0af 100644 --- a/svx/source/dialog/dialcontrol.cxx +++ b/svx/source/dialog/dialcontrol.cxx @@ -212,7 +212,7 @@ void DialControlBmp::DrawBackground() SetFillColor( GetBackgroundColor() ); tools::Rectangle aEllipseRect = maRect; aEllipseRect.shrink(DIAL_OUTER_WIDTH); - DrawEllipse( aEllipseRect ); + DrawPie(aEllipseRect, aEllipseRect.TopLeft(), aEllipseRect.TopLeft()); } DialControl::DialControl_Impl::DialControl_Impl(OutputDevice& rReference) :