Bug 6928: Windows: If LANG not equal en_GB Graphic Reports
in some cases produce empty PDF sheets or force graphviz to crash Problem was due to calling localized float() when parsing a C-locale xml file svn: r22705
This commit is contained in:
parent
a7b4600ad0
commit
5e13868e45
@ -73,8 +73,8 @@ class PageSizeParser(handler.ContentHandler):
|
|||||||
def startElement(self, tag, attrs):
|
def startElement(self, tag, attrs):
|
||||||
if tag == "page":
|
if tag == "page":
|
||||||
name = attrs['name']
|
name = attrs['name']
|
||||||
height = glocale.float(attrs['height'])
|
height = float(attrs['height'])
|
||||||
width = glocale.float(attrs['width'])
|
width = float(attrs['width'])
|
||||||
self.paper_list.append(PaperSize(name, height, width))
|
self.paper_list.append(PaperSize(name, height, width))
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user