diff options
author | Kai Ahrens <ka@openoffice.org> | 2002-12-04 15:40:38 +0000 |
---|---|---|
committer | Kai Ahrens <ka@openoffice.org> | 2002-12-04 15:40:38 +0000 |
commit | 4ff6934247fd9ead4ce96f4cc14c4fc2fd7b75c4 (patch) | |
tree | 9ae50c1561c1a53762652e0587efac149d29177b /svx/source | |
parent | cf04b1c39f49b4802caaa534af6fa2f71219896b (diff) |
#95405#: use deep graphics detection
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/gallery2/galtheme.cxx | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index 4726519b5f30..5c24d715b8bb 100644 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -2,9 +2,9 @@ * * $RCSfile: galtheme.cxx,v $ * - * $Revision: 1.26 $ + * $Revision: 1.27 $ * - * last change: $Author: ka $ $Date: 2001-12-18 15:58:56 $ + * last change: $Author: ka $ $Date: 2002-12-04 16:40:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -557,11 +557,13 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg // Hier muss noch etwas eingebaut werden, // das Files auf den ensprechenden Eintrag matched // Grafiken als Grafik-Objekte in die Gallery aufnehmen -#ifndef MAC - if( pEntry->aURL.GetExtension().CompareIgnoreCaseToAscii( "wav" ) != COMPARE_EQUAL ) -#else - if( TRUE ) -#endif + if( pEntry->eObjKind == SGA_OBJ_SOUND ) + { + SgaObjectSound aObjSound( aURL ); + if( !InsertObject( aObjSound ) ) + pEntry->bDummy = TRUE; + } + else { aGraphic.Clear(); @@ -584,13 +586,6 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg else pEntry->bDummy = TRUE; // Loesch-Flag setzen } - // restliche Sachen als Sound-Objekte aufnehmen - else - { - SgaObjectSound aObjSound( aURL ); - if( !InsertObject( aObjSound ) ) - pEntry->bDummy = TRUE; - } } else { |