Commit 83d318f6 authored by Cyrille Berger's avatar Cyrille Berger

fix bug when opening jpeg with an embedded profile

BUG:123606

svn path=/trunk/koffice/; revision=519166
parent d9e7f585
......@@ -166,7 +166,8 @@ KisColorSpace * KisColorSpaceFactoryRegistry::getColorSpace(const KisID & csID,
return 0;
KisProfile *p = getProfileByName(profileName);
if(!p && profileName != "")
return 0;
KisColorSpace *cs = csf -> createColorSpace(this, p);
if(!cs)
return 0;
......@@ -194,7 +195,7 @@ KisColorSpace * KisColorSpaceFactoryRegistry::getColorSpace(const KisID & csID,
if(!csf)
return 0;
KisColorSpace *cs = csf -> createColorSpace(this, const_cast<KisProfile *>(profile));
cs = csf -> createColorSpace(this, const_cast<KisProfile *>(profile));
if(!cs )
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