From 5e13868e45f4b2b5de44229450542c4bbb7d7e99 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 21 Jul 2013 19:15:52 +0000 Subject: [PATCH] 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 --- gramps/gen/plug/report/_paper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gen/plug/report/_paper.py b/gramps/gen/plug/report/_paper.py index 8d56fdbfc..0cd235c37 100644 --- a/gramps/gen/plug/report/_paper.py +++ b/gramps/gen/plug/report/_paper.py @@ -73,8 +73,8 @@ class PageSizeParser(handler.ContentHandler): def startElement(self, tag, attrs): if tag == "page": name = attrs['name'] - height = glocale.float(attrs['height']) - width = glocale.float(attrs['width']) + height = float(attrs['height']) + width = float(attrs['width']) self.paper_list.append(PaperSize(name, height, width)) #-------------------------------------------------------------------------