From cbe7c88407e41fd0802078be90253970fc842222 Mon Sep 17 00:00:00 2001 From: ffsup2 Date: Sun, 30 Jan 2011 23:55:32 +0100 Subject: [PATCH] Bugfix issue #183 (icm profiles list make color tab too wide) --- rtengine/iccstore.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rtengine/iccstore.cc b/rtengine/iccstore.cc index 4cadef3c8..c5cb6cff5 100644 --- a/rtengine/iccstore.cc +++ b/rtengine/iccstore.cc @@ -51,8 +51,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; }