* src/plugins/PatchNames.py: add the ability to detect
common surname prefixes * src/plugins/patchnames.glade: clean up description * src/plugins/TimeLine.py: detect invalid date range in report to prevent divide by zero error. svn: r3760
This commit is contained in:
@@ -157,6 +157,13 @@ class TimeLine:
|
||||
|
||||
(low,high) = self.find_year_range()
|
||||
|
||||
if low == high:
|
||||
if self.standalone:
|
||||
self.d.close()
|
||||
ErrorDialog(_("Report could not be created"),
|
||||
_("The range of dates chosen was not valid"))
|
||||
return
|
||||
|
||||
st_size = self.name_size()
|
||||
|
||||
font = self.d.style_list['TLG-Name'].get_font()
|
||||
|
Reference in New Issue
Block a user