diff --git a/rtengine/iccstore.cc b/rtengine/iccstore.cc index 331c2ea2c..798313354 100644 --- a/rtengine/iccstore.cc +++ b/rtengine/iccstore.cc @@ -50,8 +50,14 @@ std::vector ICCStore::getOutputProfiles () { Glib::Mutex::Lock lock(mutex_); std::vector res; - for (std::map::iterator i=fileProfiles.begin(); i!=fileProfiles.end(); i++) - res.push_back (i->first); + for (std::map::iterator i=fileProfiles.begin(); i!=fileProfiles.end(); i++){ + std::string name(i->first); + std::string::size_type i = name.find_last_of('/'); + if( i == std::string::npos ) + i = name.find_last_of('\\'); + if( i == std::string::npos ) + res.push_back ( name ); // list only profiles inside selected profiles directory + } return res; }