Projet

Général

Profil

0001-workflows-reduce-enclosing-polygon-to-a-single-dot-i.patch

Frédéric Péters, 13 décembre 2015 17:22

Télécharger (1,21 ko)

Voir les différences:

Subject: [PATCH] workflows: reduce enclosing polygon to a single dot in svg
 view (#9317)

 wcs/admin/workflows.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
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
-