dbaccess/source/ui/dlg/dbadmin.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit aaff73401318a7fd1b3e936555f933538b2407bc
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Thu Oct 24 15:37:10 2019 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Thu Oct 24 17:07:50 2019 +0200

    This probably wants to generate a "1".."10" string representation
    
    ...instead of picking the OString(char) overload.  (Was introduced with
    f62efe43a25770b8bcbe9b7bc681284b9a006ea0 "weld ODbAdminDialog".)
    
    Change-Id: Ia5225bbc16aedc71aea74ce1d004b29696f46f94
    Reviewed-on: https://gerrit.libreoffice.org/81455
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/dbaccess/source/ui/dlg/dbadmin.cxx 
b/dbaccess/source/ui/dlg/dbadmin.cxx
index 5eccd1a29bf7..80f319baa79c 100644
--- a/dbaccess/source/ui/dlg/dbadmin.cxx
+++ b/dbaccess/source/ui/dlg/dbadmin.cxx
@@ -143,7 +143,7 @@ void ODbAdminDialog::impl_selectDataSource(const 
css::uno::Any& _aDataSourceName
         case  ::dbaccess::DST_USERDEFINE10:
             {
                 OUString aTitle(DBA_RES(STR_PAGETITLE_ADVANCED));
-                AddTabPage("user" + OString(static_cast<int>(eType)), aTitle, 
ODriversSettings::CreateUser);
+                AddTabPage("user" + OString::number(eType - 
dbaccess::DST_USERDEFINE1 + 1), aTitle, ODriversSettings::CreateUser);
             }
             break;
         default:
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to