Browse Source

Testing explicitly for None as these values can be zero

pull/264/head
Martin Mrose 9 years ago
parent
commit
3a4376825b
  1. 5
      pygal/graph/xy.py

5
pygal/graph/xy.py

@ -122,8 +122,9 @@ class XY(Line, Dual):
else:
xrng = None
if xrng:
# these values can also be 0 (zero), so testing explicitly for None
if xrng is not None:
self._box.xmin, self._box.xmax = xmin, xmax
if yrng:
if yrng is not None:
self._box.ymin, self._box.ymax = ymin, ymax

Loading…
Cancel
Save