Tag: cws_src680_dba24d
User: fs      
Date: 2007-11-15 15:17:35+0000
Modified:
   dba/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx

Log:
 #i81658# copy-ctor: properly initialize m_nType / also init the TypeName when 
constructing from a property set

File Changes:

Directory: /dba/dbaccess/source/ui/tabledesign/
===============================================

File [changed]: FieldDescriptions.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx?r1=1.26.70.1&r2=1.26.70.2
Delta lines:  +19 -19
---------------------
--- FieldDescriptions.cxx       2007-11-15 10:06:31+0000        1.26.70.1
+++ FieldDescriptions.cxx       2007-11-15 15:17:33+0000        1.26.70.2
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: FieldDescriptions.cxx,v $
  *
- *  $Revision: 1.26.70.1 $
+ *  $Revision: 1.26.70.2 $
  *
- *  last change: $Author: fs $ $Date: 2007/11/15 10:06:31 $
+ *  last change: $Author: fs $ $Date: 2007/11/15 15:17:33 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -104,7 +104,7 @@
        ,m_sTypeName(rDescr.m_sTypeName)
        ,m_sDescription(rDescr.m_sDescription)
        ,m_sAutoIncrementValue(rDescr.m_sAutoIncrementValue)
-       ,m_nType(DataType::VARCHAR)
+    ,m_nType(rDescr.m_nType)
        ,m_nPrecision(rDescr.m_nPrecision)
        ,m_nScale(rDescr.m_nScale)
        ,m_nIsNullable(rDescr.m_nIsNullable)
@@ -164,6 +164,8 @@
                                        
SetAutoIncrementValue(::comphelper::getString(xAffectedCol->getPropertyValue(PROPERTY_AUTOINCREMENTCREATION)));
                                
if(xPropSetInfo->hasPropertyByName(PROPERTY_TYPE))
                                        
SetTypeValue(::comphelper::getINT32(xAffectedCol->getPropertyValue(PROPERTY_TYPE)));
+                if (xPropSetInfo->hasPropertyByName(PROPERTY_TYPENAME))
+                                       
SetTypeName(::comphelper::getString(xAffectedCol->getPropertyValue(PROPERTY_TYPENAME)));
                                
if(xPropSetInfo->hasPropertyByName(PROPERTY_PRECISION))
                                        
SetPrecision(::comphelper::getINT32(xAffectedCol->getPropertyValue(PROPERTY_PRECISION)));
                                
if(xPropSetInfo->hasPropertyByName(PROPERTY_SCALE))
@@ -182,8 +184,6 @@
                                        SetHorJustify( 
::dbaui::mapTextJustify(::comphelper::getINT16(xAffectedCol->getPropertyValue(PROPERTY_ALIGN))));
                                
if(xPropSetInfo->hasPropertyByName(PROPERTY_ISAUTOINCREMENT))
                                        
SetAutoIncrement(::cppu::any2bool(xAffectedCol->getPropertyValue(PROPERTY_ISAUTOINCREMENT)));
-                if (xPropSetInfo->hasPropertyByName(PROPERTY_TYPENAME))
-                                       
SetTypeName(::comphelper::getString(xAffectedCol->getPropertyValue(PROPERTY_TYPENAME)));
                        }
                        catch(Exception&)
                        {




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

Reply via email to