From c918e902dbcc3faa9034c9cc13792cbdafd6300e Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 24 Jan 2005 19:29:51 +0000 Subject: [PATCH] * src/StyleEditor.py (draw,save_paragraph): Swap SERIF and SANS_SERIF. svn: r3954 --- ChangeLog | 2 ++ src/StyleEditor.py | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 619927e98..4d999c3c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,8 @@ * src/plugins/TimeLine.py (define_graphics_styles): Add method. * src/plugins/DesGraph.py: Add styles before initializing doc. + * src/StyleEditor.py (draw,save_paragraph): Swap SERIF and SANS_SERIF. + 2005-01-23 Don Allingham * src/BaseDoc.py: don't check for init on table or cell addition * src/Report.py: Call doc.init() before write_report diff --git a/src/StyleEditor.py b/src/StyleEditor.py index 224e69a07..5fcb0e6e0 100644 --- a/src/StyleEditor.py +++ b/src/StyleEditor.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2000-2004 Donald N. Allingham +# Copyright (C) 2000-2005 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -212,7 +212,7 @@ class StyleEditor: font = p.get_font() self.top.get_widget("size").set_value(font.get_size()) - if font.get_type_face() == BaseDoc.FONT_SANS_SERIF: + if font.get_type_face() == BaseDoc.FONT_SERIF: self.top.get_widget("roman").set_active(1) else: self.top.get_widget("swiss").set_active(1) @@ -258,9 +258,9 @@ class StyleEditor: font.set_size(int(self.top.get_widget("size").get_value())) if self.top.get_widget("roman").get_active(): - font.set_type_face(BaseDoc.FONT_SANS_SERIF) - else: font.set_type_face(BaseDoc.FONT_SERIF) + else: + font.set_type_face(BaseDoc.FONT_SANS_SERIF) font.set_bold(self.top.get_widget("bold").get_active()) font.set_italic(self.top.get_widget("italic").get_active())