This is an automated email from the ASF dual-hosted git repository. petko pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push: new b0300d3f06 Proposed fix for Issue 60217 (#155) b0300d3f06 is described below commit b0300d3f06359ce6369a816bca32e2f34a230253 Author: Peter <legi...@users.noreply.github.com> AuthorDate: Tue Sep 27 23:12:39 2022 +0200 Proposed fix for Issue 60217 (#155) A dot is only added if both Variables rDBData.sDataSource and sCommand contain something. Otherwise the dot is not added Co-authored-by: Matthias Seidel <msei...@apache.org> --- main/sw/source/ui/fldui/changedb.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main/sw/source/ui/fldui/changedb.cxx b/main/sw/source/ui/fldui/changedb.cxx index df8795ecc7..48eb663a8f 100644 --- a/main/sw/source/ui/fldui/changedb.cxx +++ b/main/sw/source/ui/fldui/changedb.cxx @@ -327,14 +327,16 @@ IMPL_LINK( SwChangeDBDlg, TreeSelectHdl, SvTreeListBox *, EMPTYARG ) } /*-------------------------------------------------------------------- - Beschreibung: Datenbankname fuer Anzeige wandeln + Description: transform databasename for screen --------------------------------------------------------------------*/ void SwChangeDBDlg::ShowDBName(const SwDBData& rDBData) { - String sTmp(rDBData.sDataSource); String sName; - sTmp += '.'; + String sTmp(rDBData.sDataSource); + if (!rDBData.sDataSource.isEmpty() && !rDBData.sCommand.isEmpty()) { + sTmp += '.'; + } sTmp += (String)rDBData.sCommand; for (sal_uInt16 i = 0; i < sTmp.Len(); i++)