Tag: cws_ooo300_dba301a
User: oj      
Date: 2008-09-11 10:37:10+0000
Modified:
   dba/connectivity/source/drivers/dbase/DTable.cxx

Log:
 #i87972# merge fix

File Changes:

Directory: /dba/connectivity/source/drivers/dbase/
==================================================

File [changed]: DTable.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/dbase/DTable.cxx?r1=1.107&r2=1.107.48.1
Delta lines:  +4 -4
-------------------
--- DTable.cxx  2008-06-06 13:20:24+0000        1.107
+++ DTable.cxx  2008-09-11 10:37:07+0000        1.107.48.1
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: DTable.cxx,v $
- * $Revision: 1.107 $
+ * $Revision: 1.107.48.1 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -1582,7 +1582,7 @@
                                        // ein const_cast, da 
GetFormatPrecision am SvNumberFormat nicht const ist, obwohl es das eigentlich
                                        // sein koennte und muesste
 
-                                       ByteString aDefaultValue = 
::rtl::math::doubleToString( n, rtl_math_StringFormat_F, nScale, '.', NULL, 0);
+                                       const ByteString aDefaultValue( 
::rtl::math::doubleToString( n, rtl_math_StringFormat_F, nScale, '.', NULL, 0));
                     sal_Int32 nRealLen = aDefaultValue.Len();
                     BOOL bValidLength  = nRealLen <= nLen;
                     if ( bValidLength )
@@ -1593,7 +1593,7 @@
                         if ( n < 0.0 ) // for the sign '-'
                             --nRealLen;
                         
-                           bValidLength = nRealLen < nRealPrecision;
+                           bValidLength = nRealLen <= nRealPrecision;
                                            if ( bValidLength )
                                            {
                                                    
strncpy(pData,aDefaultValue.GetBuffer(),nLen);




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

Reply via email to