From 127567278e30acea7f14165d624880b57f6ad7b9 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 21 Jul 2013 19:28:20 +0000 Subject: [PATCH] [r22705]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: r22706 --- 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)) #-------------------------------------------------------------------------