diff options
-rw-r--r-- | dbaccess/source/ui/dlg/TextConnectionHelper.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx index 22f3bd5c5eff..f57b34d352b6 100644 --- a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx +++ b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx @@ -401,17 +401,14 @@ namespace dbaui if( sTVal == rVal ) { rBox.set_entry_text(rList.getToken(i, nTok)); - break; + return; } } - if ( i >= nCnt ) - { - if ( m_xTextSeparator.get() == &rBox && rVal.isEmpty() ) - rBox.set_entry_text(m_aTextNone); - else - rBox.set_entry_text(rVal.copy(0, 1)); - } + if ( m_xTextSeparator.get() == &rBox && rVal.isEmpty() ) + rBox.set_entry_text(m_aTextNone); + else + rBox.set_entry_text(rVal.copy(0, 1)); } } |