diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-01-16 15:58:12 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-01-16 19:59:01 +0000 |
commit | df11eb3408e627831b1b483f912ed8bb8ce7df0b (patch) | |
tree | 2712b7ff538401c3848399ace5a90f29d6029bd5 | |
parent | 134e8747e2bce391304c112e864c626680887d02 (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
(cherry picked from commit 77a637fb8ddfc4b045b3453f8435822a21198b19)
Reviewed-on: https://gerrit.libreoffice.org/7468
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit c3e7723500275d04177d366b50356807c16e9be1)
Reviewed-on: https://gerrit.libreoffice.org/7471
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
-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 d38c8ee103ea..db427230f9c0 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -728,7 +728,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); } @@ -757,7 +757,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; |