diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index f92468e67..e765e11e8 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -27,6 +27,8 @@ * src/plugins/WritePkg.py: Correct label. * src/ArgHandler.py: Re-enable CD export. + * src/PaperMenu.py (GrampsPaperComboBox.set): Compare paper names. + 2005-02-18 Don Allingham * src/EditPerson.py: more readonly patches * src/EventEdit.py: more readonly patches diff --git a/gramps2/src/PaperMenu.py b/gramps2/src/PaperMenu.py index bad374bd9..c2894b2aa 100644 --- a/gramps2/src/PaperMenu.py +++ b/gramps2/src/PaperMenu.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 @@ -20,6 +20,13 @@ # $Id$ +#------------------------------------------------------------------------- +# +# Python modules +# +#------------------------------------------------------------------------- +from gettext import gettext as _ + #------------------------------------------------------------------------- # # GNOME modules @@ -35,7 +42,6 @@ import gtk import BaseDoc import const import Utils -from gettext import gettext as _ #------------------------------------------------------------------------- # @@ -72,7 +78,7 @@ class GrampsPaperComboBox(gtk.ComboBox): for key in mapping: self.mapping[key.get_name()] = key self.store.append(row=[key.get_name()]) - if key == default: + if key.get_name() == default: start_index = index index += 1