vcl/source/window/splitwin.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit b6ff644abc32dd1d60bdf345dea803ca930a353f
Author: Caolán McNamara <[email protected]>
AuthorDate: Mon Aug 19 21:26:41 2024 +0100
Commit: Caolán McNamara <[email protected]>
CommitDate: Tue Aug 20 09:34:29 2024 +0200
Resolves: tdf#148830 ensure SplitWindow has enough space for splitter
Change-Id: Ib60b0e8acdffcda5b6835ff7207fffc4123d5c63
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172086
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <[email protected]>
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index f2bba6b2ceaf..26dfabf09beb 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -1140,6 +1140,8 @@ SplitWindow::SplitWindow( vcl::Window* pParent, WinBits
nStyle ) :
DockingWindow( WindowType::SPLITWINDOW, "vcl::SplitWindow maLayoutIdle" )
{
ImplInit( pParent, nStyle );
+ // ensure there is sufficient border reserved to fit the splitter into
+ set_border_width(SPLITWIN_SPLITSIZE);
}
SplitWindow::~SplitWindow()