From c5ece70541f0bf492f1b98d90af5659d64f2aeb7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 8 Jul 2020 12:48:09 +0100 Subject: prepareWidgetOwnScrolling already set WB_BORDER MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the pRealParent != pParent case already caused WB_BORDER to be set in prepareWidgetOwnScrolling Change-Id: Id33d9f8d10b8076a26b31e2dcdc70e3419bba5be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98376 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- vcl/source/window/builder.cxx | 6 ------ 1 file changed, 6 deletions(-) (limited to 'vcl/source/window') diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index c80672f0e0aa..1c93d0016df8 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -1996,8 +1996,6 @@ VclPtr VclBuilder::makeObject(vcl::Window *pParent, const OString & WinBits nWinStyle = WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK; //IconView manages its own scrolling, vcl::Window *pRealParent = prepareWidgetOwnScrolling(pParent, nWinStyle); - if (pRealParent != pParent) - nWinStyle |= WB_BORDER; VclPtr xBox = VclPtr::Create(pRealParent, nWinStyle); xWindowForPackingProps = xBox; @@ -2037,8 +2035,6 @@ VclPtr VclBuilder::makeObject(vcl::Window *pParent, const OString & } //ListBox/SvHeaderTabListBox manages its own scrolling, vcl::Window *pRealParent = prepareWidgetOwnScrolling(pParent, nWinStyle); - if (pRealParent != pParent) - nWinStyle |= WB_BORDER; if (m_bLegacy) { xWindow = VclPtr::Create(pRealParent, nWinStyle | WB_SIMPLEMODE); @@ -2185,8 +2181,6 @@ VclPtr VclBuilder::makeObject(vcl::Window *pParent, const OString & WinBits nWinStyle = WB_CLIPCHILDREN|WB_LEFT; //VclMultiLineEdit manages its own scrolling, vcl::Window *pRealParent = prepareWidgetOwnScrolling(pParent, nWinStyle); - if (pRealParent != pParent) - nWinStyle |= WB_BORDER; xWindow = VclPtr::Create(pRealParent, nWinStyle); if (pRealParent != pParent) cleanupWidgetOwnScrolling(pParent, xWindow, rMap); -- cgit