harvesterplugins/media/image/src/cpixmediaimagedoc.cpp
changeset 20 68cdadcf169e
parent 17 7d8c8d8f5eab
--- a/harvesterplugins/media/image/src/cpixmediaimagedoc.cpp	Wed Aug 18 09:49:49 2010 +0300
+++ b/harvesterplugins/media/image/src/cpixmediaimagedoc.cpp	Thu Sep 02 20:27:46 2010 +0300
@@ -108,10 +108,9 @@
           }
     
 #ifdef USE_HIGHLIGHTER
-    //Get the media file extension and store
-    TBuf<KMaxExtLength> extension;        
-    GetExtension(aObject.Uri(),extension);
-    AddToFieldExcerptL(extension);
+       TInt slashpos = GetUri().LocateReverse('\\');
+       TPtrC name = GetUri().Mid( (slashpos+1) );
+       index_item->AddHLDisplayFieldL(name);
 #endif   
     //Get user comment field
     CMdEPropertyDef& commentPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KCommentProperty );