diff options
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index 91a258698d9b..d5e9a111dae7 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -725,7 +725,7 @@ SwAddStylesDlg_Impl::SwAddStylesDlg_Impl(Window* pParent, if (!aName.isEmpty()) { SvTreeListEntry* pEntry = m_pHeaderTree->First(); - while (pEntry && m_pHeaderTree->GetEntryText(pEntry)!=aName) + while (pEntry && m_pHeaderTree->GetEntryText(pEntry, 0) != aName) { pEntry = m_pHeaderTree->Next(pEntry); } @@ -754,7 +754,7 @@ IMPL_LINK_NOARG(SwAddStylesDlg_Impl, OkHdl) sal_IntPtr nLevel = (sal_IntPtr)pEntry->GetUserData(); if(nLevel != USHRT_MAX) { - OUString sName(m_pHeaderTree->GetEntryText(pEntry)); + OUString sName(m_pHeaderTree->GetEntryText(pEntry, 0)); if(!pStyleArr[nLevel].isEmpty()) pStyleArr[nLevel] += OUString(TOX_STYLE_DELIMITER); pStyleArr[nLevel] += sName; |