[Libreoffice-commits] core.git: vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 1 11:07:02 UTC 2020


 vcl/source/window/builder.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 4d714c1d29b595d617019ea03971dfe0d938d2e0
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Jun 30 20:17:22 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Jul 1 13:06:23 2020 +0200

    support has-frame for SpinButtons too
    
    Change-Id: Id09ba9fa7bf0130cffd0f40dcfdcf5bdf0bc16b6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97598
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index f718f1659b4b..136d1bb048b2 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -1934,7 +1934,9 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString &
     {
         OUString sAdjustment = extractAdjustment(rMap);
 
-        WinBits nBits = WB_CLIPCHILDREN|WB_LEFT|WB_BORDER|WB_3DLOOK|WB_SPIN|WB_REPEAT;
+        WinBits nBits = WB_CLIPCHILDREN|WB_LEFT|WB_3DLOOK|WB_SPIN|WB_REPEAT;
+        if (extractHasFrame(rMap))
+            nBits |= WB_BORDER;
 
         if (m_bLegacy)
         {


More information about the Libreoffice-commits mailing list