summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/SidebarChildWindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/sidebar/SidebarChildWindow.cxx')
-rw-r--r--sfx2/source/sidebar/SidebarChildWindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/SidebarChildWindow.cxx b/sfx2/source/sidebar/SidebarChildWindow.cxx
index 8c3b7387b893..bdc9aa102d92 100644
--- a/sfx2/source/sidebar/SidebarChildWindow.cxx
+++ b/sfx2/source/sidebar/SidebarChildWindow.cxx
@@ -71,7 +71,7 @@ sal_Int32 SidebarChildWindow::GetDefaultWidth (vcl::Window* pWindow)
// Width of the paragraph panel.
const static sal_Int32 nMaxPropertyPageWidth (115);
- return pWindow->LogicToPixel(Point(nMaxPropertyPageWidth,1), MAP_APPFONT).X()
+ return pWindow->LogicToPixel(Point(nMaxPropertyPageWidth,1), MapUnit::MapAppFont).X()
+ TabBar::GetDefaultWidth() * pWindow->GetDPIScaleFactor();
}
else