svtools/source/control/valueset.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit aed74063a9ced833e6598a12ba3f049bbb12909e
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sat Oct 18 21:14:21 2025 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Mon Oct 20 22:06:17 2025 +0200

    ValueSet margin should be added to virdev size
    
    Change-Id: Ie4708296099086b7bc744766c99ba2a60c01fac0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192656
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/svtools/source/control/valueset.cxx 
b/svtools/source/control/valueset.cxx
index 99240f5d4bee..79b793a2ee2f 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -998,7 +998,10 @@ void ValueSet::Format(vcl::RenderContext const & 
rRenderContext)
 
     // Init VirDev
     
maVirDev->SetBackground(Application::GetSettings().GetStyleSettings().GetFaceColor());
-    maVirDev->SetOutputSizePixel(aWinSize);
+    Size aDevSize(aWinSize);
+    aDevSize.AdjustWidth(mnMargin * 2);
+    aDevSize.AdjustHeight(mnMargin * 2);
+    maVirDev->SetOutputSizePixel(aDevSize);
     maVirDev->Erase();
 
     // nothing is changed in case of too small items

Reply via email to