Commit 84c56039 authored by Christian Ledermann's avatar Christian Ledermann

line width is a float, not an integer

parent 2d6d809e
...@@ -301,7 +301,7 @@ class LineStyle(_ColorStyle): ...@@ -301,7 +301,7 @@ class LineStyle(_ColorStyle):
(if extrusion is enabled). (if extrusion is enabled).
""" """
__name__ = "LineStyle" __name__ = "LineStyle"
width = 1 width = 1.0
# Width of the line, in pixels. # Width of the line, in pixels.
def __init__(self, ns=None, id=None, color=None, colorMode=None, def __init__(self, ns=None, id=None, color=None, colorMode=None,
...@@ -320,7 +320,7 @@ class LineStyle(_ColorStyle): ...@@ -320,7 +320,7 @@ class LineStyle(_ColorStyle):
super(LineStyle, self).from_element(element) super(LineStyle, self).from_element(element)
width = element.find('%swidth' %self.ns) width = element.find('%swidth' %self.ns)
if width is not None: if width is not None:
self.width = int(width.text) self.width = float(width.text)
class PolyStyle(_ColorStyle): class PolyStyle(_ColorStyle):
""" """
......
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