0001-workflows-reduce-enclosing-polygon-to-a-single-dot-i.patch
wcs/admin/workflows.py | ||
---|---|---|
61 | 61 | |
62 | 62 |
def remove_style(node, top, colours, white_text=False): |
63 | 63 |
remove_tag(node, TITLE) |
64 |
if node.get('fill') == 'white' and node.get('stroke') == 'white':
|
|
65 |
# this is the general white background, wipe it to be transparent
|
|
66 |
node.attrib['fill'] = 'transparent'
|
|
67 |
node.attrib['stroke'] = 'transparent'
|
|
64 |
if (node.get('fill'), node.get('stroke')) in (
|
|
65 |
('white', 'white'), ('white', 'none')):
|
|
66 |
# this is the general white background, reduce it to a dot
|
|
67 |
node.attrib['points'] = '0,0 0,0 0,0 0,0'
|
|
68 | 68 |
if node.tag == svg('text') and white_text: |
69 | 69 |
node.attrib['fill'] = 'white' |
70 | 70 |
for child in node: |
71 |
- |