* src/Utils.py: provide a locale independant floating point conversion
utility * src/TextDoc.py: call new gfloat utility instead of float * src/PaperMenu.py: call new gfloat utility instead of float svn: r1740
This commit is contained in:
@@ -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))
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user