8240: can't disable box shadow in SVG descendant tree
This commit is contained in:
parent
78ec6a26a2
commit
555a244a45
@ -193,12 +193,13 @@ class SvgDrawDoc(BaseDoc, DrawDoc):
|
|||||||
|
|
||||||
style_sheet = self.get_style_sheet()
|
style_sheet = self.get_style_sheet()
|
||||||
box_style = style_sheet.get_draw_style(style)
|
box_style = style_sheet.get_draw_style(style)
|
||||||
|
shadow_width = box_style.get_shadow_space()
|
||||||
|
|
||||||
if box_style.get_shadow():
|
if box_style.get_shadow() and shadow_width > 0:
|
||||||
self.f.write(
|
self.f.write(
|
||||||
'<rect ' +
|
'<rect ' +
|
||||||
'x="%4.2fcm" ' % (x+0.15) +
|
'x="%4.2fcm" ' % (x + shadow_width) +
|
||||||
'y="%4.2fcm" ' % (y+0.15) +
|
'y="%4.2fcm" ' % (y + shadow_width) +
|
||||||
'width="%4.2fcm" ' % w +
|
'width="%4.2fcm" ' % w +
|
||||||
'height="%4.2fcm" ' % h +
|
'height="%4.2fcm" ' % h +
|
||||||
'style="fill:#808080; stroke:#808080; stroke-width:1;"/>\n'
|
'style="fill:#808080; stroke:#808080; stroke-width:1;"/>\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user