summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2001-03-12 05:42:16 +0000
committerOliver Specht <os@openoffice.org>2001-03-12 05:42:16 +0000
commit6b50ce9e6f9943068e8e227f8df73a46f0305b70 (patch)
treef752500ce090609fc237b9ff63c71122b1fda9dd
parente4a8966687faee5a9a3fe580cc93b253bbbd68ce (diff)
SwDBField: Name creation changed
-rw-r--r--sw/source/core/fields/dbfld.cxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/sw/source/core/fields/dbfld.cxx b/sw/source/core/fields/dbfld.cxx
index 7d14f0ccf985..feab3d2a59cd 100644
--- a/sw/source/core/fields/dbfld.cxx
+++ b/sw/source/core/fields/dbfld.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dbfld.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: os $ $Date: 2001-02-21 12:40:23 $
+ * last change: $Author: os $ $Date: 2001-03-12 06:42:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -130,10 +130,13 @@ SwDBFieldType::SwDBFieldType(SwDoc* pDocPtr, const String& rNam, const SwDBData&
nRefCnt(0),
sColumn(rNam)
{
- sName = aDBData.sDataSource;
- sName += DB_DELIM;
- sName += (String)aDBData.sCommand;
- sName += DB_DELIM;
+ if(aDBData.sDataSource.getLength() || aDBData.sCommand.getLength())
+ {
+ sName = aDBData.sDataSource;
+ sName += DB_DELIM;
+ sName += (String)aDBData.sCommand;
+ sName += DB_DELIM;
+ }
sName += GetColumnName();
}
//------------------------------------------------------------------------------