summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-01-16 15:58:12 +0100
committerMichael Stahl <mstahl@redhat.com>2014-01-16 16:08:35 +0100
commit77a637fb8ddfc4b045b3453f8435822a21198b19 (patch)
treeaf7a6af9385a4ab02d6ce1c36f87906b34fbbb7a /sw
parentc648d0872058941ed18499a8bf1993037d9b5532 (diff)
fdo#73043: sw: fix Index/TOC Assign Styles dialog
SvTabListBox::GetEntryText(pEntry, 0xffff) will append 10 tabs to the returned string, so it will no longer be equal to a style name. (regression from 77173d8954c370bcaca80b48181c330b759b9517) Change-Id: I7d3bee47eabec9180d6352fb6cf1b2e948153d37
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/index/cnttab.cxx4
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;