Re: [Lcms-user] profile corrupt after update
An ICC-based CMM for color management
Brought to you by:
mm2
From: Frank V. <fra...@yi...> - 2012-07-31 12:59:40
|
On 31 Jul 2012, at 13:01, Maria, Marti wrote: > > Hi Frank, > > After taking a look, it seems to me it is not a bug on the lcms library but in your code. If you examine the documentation, in the API reference of “cmsReadTag”, is stated that: > > For linked tags, think the linked tag is just an alias that points to a real tag. If you modify the real tag, the alias would point to the modified tag as well, if you modify the alias, then it will be no longer an alias but a real tag. You can check whatever a tag is an alias by using the function cmsIsLinkedTag(). The syntax is cmsIsLinkedTag(<alias>) à real tag. I have now added a check for linked tags first, and if the tag is a linked one, it now looks up the linked tag, and then updates the linked tag. And that seems to work correctly. So, for me this works fine now. (BTW, I was still on 2.0 and that is why I did not find a call to check linked tags before) Frank |