Tag: cws_src680_dba22c
User: fs      
Date: 2007/01/18 01:59:47

Modified:
   dba/dbaccess/source/core/api/column.cxx

Log:
 #i71830# corrected appendObject

File Changes:

Directory: /dba/dbaccess/source/core/api/
=========================================

File [changed]: column.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/api/column.cxx?r1=1.53&r2=1.53.50.1
Delta lines:  +8 -5
-------------------
--- column.cxx  18 Oct 2006 13:26:47 -0000      1.53
+++ column.cxx  18 Jan 2007 09:59:44 -0000      1.53.50.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: column.cxx,v $
  *
- *  $Revision: 1.53 $
+ *  $Revision: 1.53.50.1 $
  *
- *  last change: $Author: ihi $ $Date: 2006/10/18 13:26:47 $
+ *  last change: $Author: fs $ $Date: 2007/01/18 09:59:44 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -758,6 +758,7 @@
        if ( xAppend.is() )
        {
                xAppend->appendByDescriptor(descriptor);
+        xReturn = createObject( _rForName );
        }
        else if ( m_pTable && !m_pTable->isNew() )
     {
@@ -766,13 +767,15 @@
         else
             ::dbtools::throwGenericSQLException( DBA_RES( 
RID_STR_NO_COLUMN_ADD ), static_cast<XChild*>(static_cast<TXChild*>(this)) );
     }
+    else
+        xReturn = cloneDescriptor( descriptor );
 
     if ( m_pColFactoryImpl )
                m_pColFactoryImpl->columnAppended( descriptor );
 
     ::dbaccess::notifyDataSourceModified(m_xParent,sal_True);
 
-    return xReturn.is() ? xReturn : createObject( _rForName );
+    return xReturn;
 }
 // -------------------------------------------------------------------------
 // XDrop




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to