Fix of issue 3188, search for ü did not work.

svn: r13125
This commit is contained in:
Peter Landgren 2009-08-27 19:51:57 +00:00
parent c62229a449
commit 234994bfaf

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
#
# Gramps - a GTK+/GNOME based genealogy program
#
@ -76,6 +77,9 @@ class Rule(object):
return ';'.join(v)
def match_substring(self, param_index, str_var):
# make str_var unicode so that search for ü works
# see issue 3188
str_var = unicode(str_var)
if self.list[param_index] and \
(str_var.upper().find(self.list[param_index].upper()) == -1):
return False