sfx2/source/sidebar/SidebarController.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 3a09ac34dbe61d4f675956ef9e07de75cf5cfef2
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Mar 24 16:42:27 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Mar 24 21:32:34 2021 +0100

    pParentWindow is the same as already available mpParentWindow
    
    Change-Id: Ic246f21620dc1ff7a6fd91dce755ff21d0100283
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113065
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sfx2/source/sidebar/SidebarController.cxx 
b/sfx2/source/sidebar/SidebarController.cxx
index b2e8ef949b79..3fdd1b2339dd 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -419,11 +419,10 @@ void SidebarController::NotifyResize()
         return;
     }
 
-    vcl::Window* pParentWindow = mpTabBar->GetParent();
     const sal_Int32 nTabBarDefaultWidth = TabBar::GetDefaultWidth() * 
mpTabBar->GetDPIScaleFactor();
 
-    const sal_Int32 nWidth (pParentWindow->GetSizePixel().Width());
-    const sal_Int32 nHeight (pParentWindow->GetSizePixel().Height());
+    const sal_Int32 nWidth(mpParentWindow->GetSizePixel().Width());
+    const sal_Int32 nHeight(mpParentWindow->GetSizePixel().Height());
 
     mbIsDeckOpen = (nWidth > nTabBarDefaultWidth);
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to