svtools/source/brwbox/brwbox1.cxx | 5 ----- 1 file changed, 5 deletions(-)
New commits: commit 31490e9bd93bfd622ddda79e927114b3fafba6c1 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Tue Jun 4 11:11:33 2024 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Tue Jun 4 12:24:46 2024 +0200 Revert "svtools: fix crash in BrowseBox::GetControlArea()" This reverts commit ec5aa7e88b0d412041f8575111f0da295065cecb (svtools: fix crash in BrowseBox::GetControlArea(), 2024-06-04), not needed after commit 6f2b5043613bea755f01b413fd86ece0b3a29e5d (crashtesting: BrowseBox::GetControlArea crash, 2024-06-03). Change-Id: I1e86380041266b1fb83f11df37700f10cc88e5bc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168399 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index 0457d768ec98..982e00cfd388 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -2134,11 +2134,6 @@ bool BrowseBox::ReserveControlArea(sal_uInt16 nWidth) tools::Rectangle BrowseBox::GetControlArea() const { - if (!aHScroll) - { - return tools::Rectangle(); - } - auto nHeight = aHScroll->GetSizePixel().Height(); auto nEndRight = aHScroll->GetPosPixel().X();