Commit a20ca5c7 authored by Casper Boemann's avatar Casper Boemann

return 0 when the colorspace doesn't exist

svn path=/trunk/koffice/; revision=471072
parent ab3c66f2
......@@ -58,9 +58,10 @@ KisColorSpaceFactoryRegistry::KisColorSpaceFactoryRegistry(QStringList profileFi
"([X-KDE-Version] == 2)"));
KTrader::OfferList::ConstIterator iter;
printf("going through color models\n");
for(iter = offers.begin(); iter != offers.end(); ++iter)
{
printf("got a color models\n");
KService::Ptr service = *iter;
int errCode = 0;
KParts::Plugin* plugin =
......@@ -144,7 +145,10 @@ KisColorSpace * KisColorSpaceFactoryRegistry::getColorSpace(const KisID & csID,
m_csMap[name] = cs;
}
return m_csMap[name];
if(m_csMap.contains(name))
return m_csMap[name];
else
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment