From 0c94d9fae60f5487b79268f483a243f0c8c51abd Mon Sep 17 00:00:00 2001 From: ffsup2 Date: Wed, 2 Feb 2011 23:24:58 +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 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; }