diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-08 10:39:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-08 14:56:56 +0200 |
commit | e50f6c023926269f76cd73e085b7a246cd0f88fa (patch) | |
tree | a136955077c2ffcdbd3a5f674cd1c454e9d173ca /sc/source/ui/view/prevwsh.cxx | |
parent | d564d73673dc4dce43c988421397a6feae7620d5 (diff) |
no need for ScrollBarBox when bg is already the desired color
Change-Id: I5e50d67687355b38190a991ea539b2d40ef74659
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137948
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/view/prevwsh.cxx')
-rw-r--r-- | sc/source/ui/view/prevwsh.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx index da04cffd61e0..5ae90d6be22a 100644 --- a/sc/source/ui/view/prevwsh.cxx +++ b/sc/source/ui/view/prevwsh.cxx @@ -119,8 +119,6 @@ void ScPreviewShell::Construct( vcl::Window* pParent ) eZoom = SvxZoomType::WHOLEPAGE; - pCorner = VclPtr<ScrollBarBox>::Create( pParent, WB_SIZEABLE ); - pHorScroll = VclPtr<ScrollAdaptor>::Create(pParent, true); pVerScroll = VclPtr<ScrollAdaptor>::Create(pParent, false); @@ -142,7 +140,6 @@ void ScPreviewShell::Construct( vcl::Window* pParent ) pHorScroll->Show( false ); pVerScroll->Show( false ); - pCorner->Show(); SetName("Preview"); } @@ -199,7 +196,6 @@ ScPreviewShell::~ScPreviewShell() pPreview.disposeAndClear(); pHorScroll.disposeAndClear(); pVerScroll.disposeAndClear(); - pCorner.disposeAndClear(); // normal mode of operation is switching back to default view in the same frame, // so there's no need to activate any other window here anymore @@ -317,8 +313,6 @@ void ScPreviewShell::UpdateNeededScrollBars( bool bFromZoom ) Size( aWindowPixelSize.Width(), nBarH ) ); pVerScroll->SetPosSizePixel( Point( aPos.X() + aWindowPixelSize.Width(), aPos.Y() ), Size( nBarW, aWindowPixelSize.Height() ) ); - pCorner->SetPosSizePixel( Point( aPos.X() + aWindowPixelSize.Width(), aPos.Y() + aWindowPixelSize.Height() ), - Size( nBarW, nBarH ) ); UpdateScrollBars(); } |