[Libreoffice-commits] core.git: dbaccess/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Thu Oct 24 15:09:27 UTC 2019
dbaccess/source/ui/dlg/dbadmin.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit aaff73401318a7fd1b3e936555f933538b2407bc
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Oct 24 15:37:10 2019 +0200
Commit: Stephan Bergmann <sbergman at 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 <sbergman at 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:
More information about the Libreoffice-commits
mailing list