From 0b6082e9977e89b969472aac8e663ea0d161246e Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 7 Sep 2003 02:55:41 +0000 Subject: [PATCH] * src/plugins/FilterEditor.py (MyInteger): Fix type conversions. svn: r2097 --- gramps2/ChangeLog | 3 +++ gramps2/src/plugins/FilterEditor.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 778262255..7adde61c4 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2003-09-06 Alex Roitman + * src/plugins/FilterEditor.py (MyInteger): Fix type conversions. + 2003-09-06 Don Allingham * src/plugins/FilterEditor.py (MyPlaces): fix handling of get_text, set_text tasks. Use the default from the base class. diff --git a/gramps2/src/plugins/FilterEditor.py b/gramps2/src/plugins/FilterEditor.py index 351f7d499..50143baad 100644 --- a/gramps2/src/plugins/FilterEditor.py +++ b/gramps2/src/plugins/FilterEditor.py @@ -91,10 +91,10 @@ class MyInteger(gtk.SpinButton): self.show() def get_text(self): - return str(self.get_value()) + return str(self.get_value_as_int()) def set_text(self,val): - self.set_value(val) + self.set_value(int(val)) #------------------------------------------------------------------------- #