From 71b5ed316e333252343477f1c354c1360f0b3989 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sat, 14 Jun 2003 18:11:30 +0000 Subject: [PATCH] * src/plugins/IndivComplete.py (write_fact): Enable translation for the event name; * (get_stylesheet_savefile): Change the name of xml file (and, consequently, the target filename) -- was confused with family group. * src/StyleEditor.py (save_paragraph): Call gfloat instead of float. * src/TextDoc.py (SheetParser.startElement): Likewise. svn: r1743 --- gramps2/ChangeLog | 8 ++++++++ gramps2/src/StyleEditor.py | 6 +++--- gramps2/src/TextDoc.py | 8 ++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 7980cca10..056c43b57 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,11 @@ +2003-06-14 Alex Roitman + * src/plugins/IndivComplete.py (write_fact): Enable translation + for the event name; + * (get_stylesheet_savefile): Change the name of xml file (and, + consequently, the target filename) -- was confused with family group. + * src/StyleEditor.py (save_paragraph): Call gfloat instead of float. + * src/TextDoc.py (SheetParser.startElement): Likewise. + 2003-06-14 Don Allingham * src/preferences.glade: Don't immediately show preferences dialog * src/GrampsCfg.py: Handle new callback for preferences dialog diff --git a/gramps2/src/StyleEditor.py b/gramps2/src/StyleEditor.py index 71e70ca52..5f9c3b46d 100644 --- a/gramps2/src/StyleEditor.py +++ b/gramps2/src/StyleEditor.py @@ -269,9 +269,9 @@ class StyleEditor: else: p.set_alignment(TextDoc.PARA_ALIGN_JUSTIFY) - p.set_right_margin(float(self.top.get_widget("rmargin").get_text())) - p.set_left_margin(float(self.top.get_widget("lmargin").get_text())) - p.set_padding(float(self.top.get_widget("pad").get_text())) + p.set_right_margin(Utils.gfloat(self.top.get_widget("rmargin").get_text())) + p.set_left_margin(Utils.gfloat(self.top.get_widget("lmargin").get_text())) + p.set_padding(Utils.gfloat(self.top.get_widget("pad").get_text())) p.set_top_border(self.top.get_widget("tborder").get_active()) p.set_left_border(self.top.get_widget("lborder").get_active()) p.set_right_border(self.top.get_widget("rborder").get_active()) diff --git a/gramps2/src/TextDoc.py b/gramps2/src/TextDoc.py index 04861bf24..1806e4b00 100644 --- a/gramps2/src/TextDoc.py +++ b/gramps2/src/TextDoc.py @@ -907,10 +907,10 @@ class SheetParser(handler.ContentHandler): self.f.set_underline(int(attrs['underline'])) self.f.set_color(cnv2color(attrs['color'])) elif tag == "para": - self.p.set_right_margin(float(attrs['rmargin'])) - self.p.set_left_margin(float(attrs['lmargin'])) - self.p.set_first_indent(float(attrs['first'])) - self.p.set_padding(float(attrs['pad'])) + self.p.set_right_margin(Utils.gfloat(attrs['rmargin'])) + self.p.set_left_margin(Utils.gfloat(attrs['lmargin'])) + self.p.set_first_indent(Utils.gfloat(attrs['first'])) + self.p.set_padding(Utils.gfloat(attrs['pad'])) self.p.set_alignment(int(attrs['align'])) self.p.set_right_border(int(attrs['rborder'])) self.p.set_header_level(int(attrs['level']))