diff options
author | David Tardon <dtardon@redhat.com> | 2012-05-10 15:59:20 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-05-11 12:12:05 +0200 |
commit | bcbf4b061b2e923c2ff3b222458c286c8fa27a3a (patch) | |
tree | cc39d27a090eccee0cdc285611c292bc462084bb | |
parent | 208617ab0441f4b985656fcdb26516034db5327b (diff) |
fdo#49709 set updated values to the right entries
Change-Id: I8fc6f7b52b797eefb7276dd73630b235e6918296
-rw-r--r-- | sw/source/ui/index/swuiidxmrk.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx index a3d64a47d407..017f0188dc92 100644 --- a/sw/source/ui/index/swuiidxmrk.cxx +++ b/sw/source/ui/index/swuiidxmrk.cxx @@ -1127,7 +1127,7 @@ public: struct TextInfo { - sal_uInt16 nToxField; + ToxAuthorityField nToxField; const char* pHelpId; }; @@ -1764,14 +1764,15 @@ IMPL_LINK(SwCreateAuthEntryDlg_Impl, IdentifierHdl, ComboBox*, pBox) { for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++) { - if(AUTH_FIELD_IDENTIFIER == i) + const TextInfo aCurInfo = aTextInfoArr[i]; + if(AUTH_FIELD_IDENTIFIER == aCurInfo.nToxField) continue; - if(AUTH_FIELD_AUTHORITY_TYPE == i) + if(AUTH_FIELD_AUTHORITY_TYPE == aCurInfo.nToxField) pTypeListBox->SelectEntry( - pEntry->GetAuthorField((ToxAuthorityField)i)); + pEntry->GetAuthorField(aCurInfo.nToxField)); else pEdits[i]->SetText( - pEntry->GetAuthorField((ToxAuthorityField)i)); + pEntry->GetAuthorField(aCurInfo.nToxField)); } } } |