summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/notebookbar/PriorityHBox.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/notebookbar/PriorityHBox.cxx b/sfx2/source/notebookbar/PriorityHBox.cxx
index be9c16062615..913ef12495fa 100644
--- a/sfx2/source/notebookbar/PriorityHBox.cxx
+++ b/sfx2/source/notebookbar/PriorityHBox.cxx
@@ -113,7 +113,8 @@ public:
virtual void Resize() override
{
- SetSizeFromParent();
+ if (!m_bInitialized && SfxViewFrame::Current())
+ Initialize();
if (!m_bInitialized)
{