* src/Report.py (parse_report_options_frame): Do not allow

negative-numbered selection in the filter menu.


svn: r5375
This commit is contained in:
Alex Roitman 2005-11-08 19:43:30 +00:00
parent 841ecdb4c6
commit 0b94abb585
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,9 @@
* src/EditPlace.py: Fix idle for new objects. * src/EditPlace.py: Fix idle for new objects.
* src/EditSource.py: Fix idle for new objects. * src/EditSource.py: Fix idle for new objects.
* src/ImageSelect.py: Fix idle for new objects. * src/ImageSelect.py: Fix idle for new objects.
* src/Report.py (parse_report_options_frame): Do not allow
negative-numbered selection in the filter menu.
2005-11-07 Alex Roitman <shura@gramps-project.org> 2005-11-07 Alex Roitman <shura@gramps-project.org>
* src/EditPlace.py: Convert References to the list view. * src/EditPlace.py: Convert References to the list view.

View File

@ -839,7 +839,7 @@ class BareReportDialog:
if self.filter_combo: if self.filter_combo:
try: try:
self.filter = self.filter_combo.get_value() self.filter = self.filter_combo.get_value()
active = self.filter_combo.get_active() active = max(0,self.filter_combo.get_active())
self.options.handler.set_filter_number(active) self.options.handler.set_filter_number(active)
except: except:
print "Error setting filter. Proceeding with 'Everyone'" print "Error setting filter. Proceeding with 'Everyone'"