Commit aa28e8a7 authored by Jérome Perrin's avatar Jérome Perrin

If "Data Color" is defined expliclty in the OOoChart configuration, it already...

If "Data Color" is defined expliclty in the OOoChart configuration, it already starts with "#", so we must handle it explicitly here

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24928 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8ceba789
......@@ -107,7 +107,8 @@
chart:interpolation request/interpolation ;"/>\n
<style:graphic-properties draw:stroke="solid" svg:stroke-width="0.088cm"\n
tal:define="step python:2000000;\n
hex_colour_code python:\'#%s\' % colour_column_dict.get(column_id, hex(int(\'ccccff\', 16) + (index*step))[2:8].zfill(6))"\n
hex_colour_code python:colour_column_dict.get(column_id, hex(int(\'ccccff\', 16) + (index*step))[2:8].zfill(6));\n
hex_colour_code python:test(hex_colour_code.startswith(\'#\'), hex_colour_code, \'#%s\' % hex_colour_code)"\n
tal:attributes="svg:stroke-color hex_colour_code;\n
draw:fill-color hex_colour_code"\n
dr3d:edge-rounding="0%"/>\n
......@@ -194,7 +195,8 @@
</table:table>\n
</tal:block>\n
\n
</office:document-content>
</office:document-content>\n
]]></string> </value>
</item>
......
1047
\ No newline at end of file
1048
\ No newline at end of file
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