Kaydet (Commit) 9b325647 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#124485 [none] is at index 0

rather than the meaning of nothing-selected which is -1

Change-Id: I3be01fa8d6b57f61aa660be5912f479e79cff2b2
Reviewed-on: https://gerrit.libreoffice.org/70142
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 53865b3f
...@@ -1113,7 +1113,7 @@ void SwTOXSelectTabPage::FillTOXDescription() ...@@ -1113,7 +1113,7 @@ void SwTOXSelectTabPage::FillTOXDescription()
case TOX_AUTHORITIES: case TOX_AUTHORITIES:
case TOX_BIBLIOGRAPHY : case TOX_BIBLIOGRAPHY :
{ {
if (m_xBracketLB->get_active() != -1) if (m_xBracketLB->get_active())
rDesc.SetAuthBrackets(m_xBracketLB->get_active_text()); rDesc.SetAuthBrackets(m_xBracketLB->get_active_text());
else else
rDesc.SetAuthBrackets(OUString()); rDesc.SetAuthBrackets(OUString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment