summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/uibase/utlui/navipi.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index 99f87a13a055..61ada3408bbc 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -692,6 +692,12 @@ SwNavigationPI::SwNavigationPI(weld::Widget* pParent,
m_xGlobalBox->hide();
m_xGlobalToolBox->hide();
m_xGlobalTree->HideTree();
+
+ //Open Headings by default
+ auto& pTreeView = m_xContentTree->get_widget();
+ std::unique_ptr<weld::TreeIter> itEntry(pTreeView.make_iterator());
+ pTreeView.get_iter_first(*itEntry);
+ pTreeView.expand_row(*itEntry);
}
}