diff --git a/src/PaperMenu.py b/src/PaperMenu.py index f923a2fef..798fa29f3 100644 --- a/src/PaperMenu.py +++ b/src/PaperMenu.py @@ -33,6 +33,7 @@ import gtk import TextDoc import GrampsCfg import const +import Utils from intl import gettext as _ #------------------------------------------------------------------------- @@ -110,8 +111,8 @@ class PageSizeParser(handler.ContentHandler): def startElement(self,tag,attrs): if tag == "page": name = attrs['name'] - height = float(attrs['height']) - width = float(attrs['width']) + height = Utils.gfloat(attrs['height']) + width = Utils.gfloat(attrs['width']) self.paper_list.append(TextDoc.PaperStyle(name,height,width)) #------------------------------------------------------------------------- diff --git a/src/TextDoc.py b/src/TextDoc.py index aa359e964..04861bf24 100644 --- a/src/TextDoc.py +++ b/src/TextDoc.py @@ -63,6 +63,7 @@ __version__ = "Revision:$" # #------------------------------------------------------------------------- import os +import Utils #------------------------------------------------------------------------- # @@ -776,9 +777,9 @@ class StyleSheetList: f.write('underline="%d" ' % font.get_underline()) f.write('color="#%02x%02x%02x"/>\n' % font.get_color()) f.write('