Tag: cws_src680_dba201b
User: oj      
Date: 05/07/05 06:35:50

Modified:
 /dba/dbaccess/source/ui/control/
  FieldDescControl.cxx

Log:
 #i48851# store default for bool as string

File Changes:

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

File [changed]: FieldDescControl.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/control/FieldDescControl.cxx?r1=1.38&r2=1.38.58.1
Delta lines:  +5 -7
-------------------
--- FieldDescControl.cxx        17 Feb 2005 11:07:04 -0000      1.38
+++ FieldDescControl.cxx        5 Jul 2005 13:35:47 -0000       1.38.58.1
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: FieldDescControl.cxx,v $
  *
- *  $Revision: 1.38 $
+ *  $Revision: 1.38.58.1 $
  *
- *  last change: $Author: vg $ $Date: 2005/02/17 11:07:04 $
+ *  last change: $Author: oj $ $Date: 2005/07/05 13:35:47 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -479,7 +479,7 @@
                nLastVisible = static_cast<sal_uInt16>((szOverallSize.Height() 
- CONTROL_SPACING_Y - nHScrollHeight) / (CONTROL_SPACING_Y + CONTROL_HEIGHT));
        else
                nLastVisible = static_cast<sal_uInt16>((szOverallSize.Height() 
- CONTROL_SPACING_Y) / (CONTROL_SPACING_Y + CONTROL_HEIGHT));
-       bNeedVScrollBar = nActive > nLastVisible;
+       bNeedVScrollBar = nActive>nLastVisible;
 
        if (bNeedVScrollBar)
        {
@@ -870,8 +870,6 @@
                pListBox->SaveValue();
                TOTypeInfoSP pTypeInfo = 
getTypeInfo(m_pType->GetSelectEntryPos());
                pActFieldDescr->FillFromTypeInfo(pTypeInfo,sal_True,sal_False); 
// SetType(pTypeInfo);
-               if ( pTypeInfo.get() )
-                       pActFieldDescr->SetTypeName(pTypeInfo->getDBName());
 
                DisplayData(pActFieldDescr);
                CellModified(-1, m_pType->GetPos());
@@ -1956,7 +1954,7 @@
                sal_uInt32 nFormatKey;
                try
                {
-                       if ( isTextFormat(pFieldDescr,nFormatKey) )
+                       if ( isTextFormat(pFieldDescr,nFormatKey) || 
pBoolDefault )
                        {
                                
pFieldDescr->SetControlDefault(makeAny(sDefault));
                        }




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

Reply via email to