summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-04-29 16:07:55 +0200
committerMichael Stahl <mstahl@redhat.com>2014-04-29 16:22:43 +0200
commit1a18c27bfbaec32520f2a03b40ae09c9e44c59b8 (patch)
treeb23d31d787763041acecc67046f8b6b849f833ce /sw/source/ui
parentccfbc9e1791dd764bb06b87b3c65a7d2b76a35f2 (diff)
sw: actually why does this not simply call FlatIndex()?
Change-Id: I74f5e25a05ca3c4c0259dd7f33da57a9e0790caa
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/index/cnttab.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index c3d04ef6268b..31bcf3707c0e 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -368,11 +368,7 @@ short SwMultiTOXTabDialog::Ok()
SwTOXDescription& rDesc = GetTOXDescription(eCurrentTOXType);
SwTOXBase aNewDef(*rSh.GetDefaultTOXBase( eCurrentTOXType.eType, true ));
- const sal_uInt16 nIndex = static_cast< sal_uInt16 >(
- (eCurrentTOXType.eType == TOX_USER && eCurrentTOXType.nIndex)
- ? TOX_AUTHORITIES + eCurrentTOXType.nIndex
- : eCurrentTOXType.eType);
-
+ const sal_uInt16 nIndex = eCurrentTOXType.GetFlatIndex();
if(pFormArr[nIndex])
{
rDesc.SetForm(*pFormArr[nIndex]);