User: hr      
Date: 2007-11-01 15:03:35+0000
Modified:
   dba/dbaccess/source/ui/browser/dsEntriesNoExp.cxx

Log:
 INTEGRATION: CWS dba24b (1.18.46); FILE MERGED
 2007/09/03 06:16:59 oj 1.18.46.1: #10000# 
SbaTableQueryBrowser::getDatabaseObjectType: folder types and 'Unknown' not 
allowed here!

File Changes:

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

File [changed]: dsEntriesNoExp.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/dsEntriesNoExp.cxx?r1=1.18&r2=1.19
Delta lines:  +16 -8
--------------------
--- dsEntriesNoExp.cxx  2007-05-10 10:19:00+0000        1.18
+++ dsEntriesNoExp.cxx  2007-11-01 15:03:32+0000        1.19
@@ -234,6 +234,13 @@
 
             // the images for this entry
             Image aImage, aImageHC;
+            if ( pData->eType == etDatasource )
+            {
+                aImage = pImageProvider->getDatabaseImage( false );
+                aImageHC = pImageProvider->getDatabaseImage( true );
+            }
+            else
+            {
             bool bIsFolder = !isObject( pData->eType );
             if ( bIsFolder )
             {
@@ -247,6 +254,7 @@
                 aImage = pImageProvider->getImage( GetEntryText( pEntryLoop ), 
nObjectType, false );
                 aImageHC = pImageProvider->getImage( GetEntryText( pEntryLoop 
), nObjectType, true );
             }
+            }
 
             // find the proper item, and set its icons
                        USHORT nCount = pEntryLoop->ItemCount();




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

Reply via email to