User: hr      
Date: 2007-08-03 12:43:01+0000
Modified:
   dba/reportdesign/source/core/api/ReportEngineJFree.cxx

Log:
 INTEGRATION: CWS rpt23fix02 (1.2.4); FILE MERGED
 2007/07/20 12:19:59 lla 1.2.4.1: #i79744# fix problems with empty group headers

File Changes:

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

File [changed]: ReportEngineJFree.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/source/core/api/ReportEngineJFree.cxx?r1=1.3&r2=1.4
Delta lines:  +12 -8
--------------------
--- ReportEngineJFree.cxx       2007-08-02 14:30:29+0000        1.3
+++ ReportEngineJFree.cxx       2007-08-03 12:42:59+0000        1.4
@@ -493,6 +493,9 @@
         ::rtl::OUString sExpression = xGroup->getExpression();
         if ( xColumns->hasByName(sExpression) )
             sExpression = ::dbtools::quoteName( sQuote, sExpression );
+        sExpression = sExpression.trim(); // Trim away white spaces
+        if (sExpression.getLength() > 0)
+               {
         aOrder.append( sExpression );
         if (aOrder.getLength() > 0) 
                        aOrder.appendAscii( " " );
@@ -501,6 +504,7 @@
         if ( (i+1) < nCount )
             aOrder.appendAscii( "," );
     }
+       }
 
     return aOrder.makeStringAndClear();
 }




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

Reply via email to