Comment 11 for bug 632023

Revision history for this message
jazzynico (jazzynico) wrote :

I'm a bit stuck.
My latest findings, with a rectangle associated with a sRGB-IEC61966-2.1 profile. Everything (except the libcroco part) is In src/style.cpp:

1. The "p" value sent to sp_style_merge_from_style_string(SPStyle *const style, gchar const *const p) is correct:
** Message: sp_style_merge_from_style_string, fill:#3aa869 icc-color(sRGB-IEC61966-2.1, 0.22758831, 0.65891508, 0.41173419);

2. sp_style_merge_from_style_string then calls cr_declaration_parse_list_from_buf() (libcroco) and sends the declaration to sp_style_merge_from_decl_list().

3. sp_style_merge_from_decl_list() then calls sp_style_merge_style_from_decl(). The icc-color value is incorrect:
** Message: sp_style_merge_style_from_decl, #3aa869 icc-color(sRGB-IEC61966-2 0.10000000000000001, 0.22758830999999999, 0.65891507999999999, 0.41173419000000000).