Tag: cws_src680_dba24b User: oj Date: 2007-09-28 12:00:17+0000 Modified: dba/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
Log: RESYNC: (1.78-1.79); FILE MERGED File Changes: Directory: /dba/dbaccess/source/ui/querydesign/ =============================================== File [changed]: SelectionBrowseBox.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx?r1=1.78.44.1&r2=1.78.44.2 Delta lines: +6 -5 ------------------- --- SelectionBrowseBox.cxx 2007-08-24 07:11:26+0000 1.78.44.1 +++ SelectionBrowseBox.cxx 2007-09-28 12:00:15+0000 1.78.44.2 @@ -1027,11 +1027,12 @@ static_cast<OQueryController*>(getDesignView()->getController())->getUndoMgr()->EnterListAction(String(),String()); USHORT nPos = m_pFieldCell->GetEntryPos(aFieldName); - if ( nPos != COMBOBOX_ENTRY_NOTFOUND && aFieldName.GetTokenCount('.') > 1 ) + String aAliasName = pEntry->GetAlias(); + if ( nPos != COMBOBOX_ENTRY_NOTFOUND && !aAliasName.Len() && aFieldName.GetTokenCount('.') > 1 ) { // special case, we have a table field so we must cut the table name String sTableAlias = aFieldName.GetToken(0,'.'); pEntry->SetAlias(sTableAlias); - String sColumnName = aFieldName.GetToken(1,'.'); + String sColumnName = aFieldName.Copy(sTableAlias.Len()+1,aFieldName.Len() - sTableAlias.Len() -1); Reference<XConnection> xConnection = pController->getConnection(); if ( !xConnection.is() ) return sal_False; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
