diff options
Diffstat (limited to 'sfx2/source/sidebar/SidebarController.cxx')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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); |